Change PLUGIN_ID field in generated UI activator [message #1797531] |
Thu, 01 November 2018 05:50  |
Eclipse User |
|
|
|
Hello,
is there a way to change the PLUGIN_ID field in the generated activator of the UI project?
public class ExampledslActivator extends AbstractUIPlugin {
public static final String PLUGIN_ID = "exampledsl.ui";
...
}
It contains the value of eclipsePlugin.name of my mwe2 file but this is not the correct bundle symbolic name in my setup. So, is there any chance to change the generated value so that I do not need to change my bundle symbolic name?
Just for the record: Having a bundle symbolic name that differs from the generated PLUGIN_ID field leads to the following error:
Could not create the Injector for org.example.lang.exampledsl.ui.ExampleDSLExecutableExtensionFactory.
A NullPointerException occurred. This also indicates that bundle org.example.exampledsl.ui was compiled with an outdated version of Xtext. Please consider to regenerate the DSL implementation with a current version.
Your currently installed version of Xtext is 2.15.0.v20180916-1016.
Took me some time to figure this out.
Cornelius
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05212 seconds