Commit baceb797 authored by Müller, Marco's avatar Müller, Marco
Browse files

MarkerInterfaceTransformation is now configurable

parent fd8bd8ad
Loading
Loading
Loading
Loading
+12 −1
Original line number Diff line number Diff line
@@ -61,8 +61,19 @@ abstract class MarkerInterfaceTransformation<ELEMENTECLASS extends EObject> exte
		// Set name attribute value
		val String name = codeElement.elementName;
		setNameAttributeValue(modelElement, name);

		return modelElement;
	}

	def getExpectedInterfaceName() {
		eClass.name.toFirstUpper
	}

	def boolean hasExpectedInterface(IType type) {
		return type.superInterfaceNames.contains(expectedInterfaceName);
	}

	protected def String getNewAnnotationName() {
		return '''org.codeling.lang.«getLanguageName».mm.«eClass.name.toFirstUpper»''';
	}

}