Community
Participate
Working Groups
Build Identifier: 20110615-0604 CodetemplatesGeneratorFragment seems to be independent of JDT, but when I run our xtext plugin without JDT, injection fails for the org.eclipse.xtext.ui.codetemplates.ui plugin. Reproducible: Always Steps to Reproduce: 1. Create xtext project independent of JDT 2. Add CodetemplatesGeneratorFragment to MWE2 workflow 3. Run project without JDT plugins
Created attachment 201789 [details] stacktrace Stacktrace
When I override following bindings in the UI modules (CodetemplatesUiModule and SingleCodetemplateUiModule) it works fine without JDT: @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(); } Two questions: 1. Is there any reason why the codetemplates.ui plugin depends on JDT? 2. Is it possible to override these bindings without changing code in the codetemplates.ui plugin? Thanks, Hendrik.
There was no special reason why the codetemplates.ui plugin depended on JDT. We removed the dependency by adding your suggested bindings. No need to have custom bindings anymore. pushed to master.
Closing all bugs that were set to RESOLVED before Neon.0