Community
Participate
Working Groups
To make a language JDT independent you have to use some implementations that have been introduced in bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=301606. In the UIModele of your language you have to overwrite some bindings: @Override public Class<? extends IResourceForEditorInputFactory> bindIResourceForEditorInputFactory() { return ResourceForIEditorInputFactory.class; } @Override public Class<? extends IResourceSetProvider> bindIResourceSetProvider() { return SimpleResourceSetProvider.class; } @Override public com.google.inject.Provider<org.eclipse.xtext.resource.containers.IAllContainersState> provideIAllContainersState() { return org.eclipse.xtext.ui.shared.Access.getWorkspaceProjectsState(); } The next thing you have to do is to overwrite the generated projectCreator of you language. (If you told the Genarator to generate one) In this class you have to overwrite the method configureProject. Normally the JDT-stuff of projectConfiguration is done here. We have no JDT so we have to configure nothing. Just leave the body empty. The next thing is to redefine the projectNatures and builders that should be applied to you language projects. In in this case just remove the JDT stuff in this way: protected String[] getProjectNatures() { return new String[] { "org.eclipse.pde.PluginNature", "org.eclipse.xtext.ui.shared.xtextNature" }; } protected String[] getBuilders() { return new String[]{ "org.eclipse.pde.ManifestBuilder", "org.eclipse.pde.SchemaBuilder" }; } After that you have to bind the new created Iproject @Override public Class<? extends IProjectCreator> bindIProjectCreator() { return JDTFreeMyDslProjectCreator.class; } Done.
Fixed in HEAD. Proof reading would be appreciated.
What exactly is the fix? For me the problem seems to be that there is no method configureProject in the tree of the generated ProjectCreator.
http://www.eclipse.org/Xtext/documentation/1_0_1/xtext.html#java_independent_languages
Unfortunately the docs are outdated. You have to customize the configured IProjectCreator.
Closing all bugs that were set to RESOLVED before Neon.0