New Project Wizard not shown [message #1705845] |
Wed, 19 August 2015 08:55  |
Eclipse User |
|
|
|
Hi,
I wanted to add a new project wizard to my Xtext dsl. Therefore I added the following code to the .mwe2 file of the plugin:
// provides a new project wizard
fragment = projectWizard.SimpleProjectWizardFragment {
generatorProjectName = "${projectName}.generator"
fileExtension = fileExtensions
}
When regenerating this gave my a new namespace mydsl.wizard with MyDslProjectInfo.java and MyDSLNewProject.xpt
So far so good. Next I added the following code to MyDslUiModule.java
private AbstractUIPlugin plugin;
public MyDslUiModule(AbstractUIPlugin plugin) {
super(plugin);
this.plugin = plugin;
}
public void configureLanguageName(Binder binder) {
binder.bind(String.class).annotatedWith(Names.named(Constants.LANGUAGE_NAME)).toInstance("com.somepath.mydsl");
}
public void configureFileExtensions(Binder binder) {
binder.bind(String.class).annotatedWith(Names.named(Constants.FILE_EXTENSIONS)).toInstance("mydsl");
}
@Override
public void configure(Binder binder) {
super.configure(binder);
binder.bind(AbstractUIPlugin.class).toInstance(plugin);
binder.bind(IDialogSettings.class).toInstance(plugin.getDialogSettings());
}
// contributed by org.eclipse.xtext.ui.generator.projectWizard.SimpleProjectWizardFragment
public Class<? extends org.eclipse.xtext.ui.wizard.IProjectCreator> bindIProjectCreator() {
return MyDslProjectCreator.class;
}
However, the Wizard still does not show up. What am I missing out?
Thanks
Steffen
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.25938 seconds