Open mmews-n4 opened 6 years ago
The logic from ExtensionFactoryUtil#parseExtensionFactory(String)
is indeed not perfect and probably never can be. It's just a a utility to automagically setup Xpect for Xtext languages that follow standard naming conventions. If your language doesn't follow standard naming conventions, for example by introducing custom named subclasses of ExtensionFactories... you might want to use the extension point org.eclipse.xpect.fileExtensions to provide an explicit configuration for Xpect for your language.
Thanks! I didn't know that extension point.
The javadoc comment says:
However, this cannot be done since somewhere in Xpect the name of the actually used ExecutableExtensionFactory is used to create another class name and load it dynamically ExtensionFactoryUtil#parseExtensionFactory(String).
Proposed solution
final
and adjust the comment, or