| Summary: | CodetemplatesGeneratorFragment does not work without JDT | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Modeling] TMF | Reporter: | Hendrik Eeckhaut <hendrik> | ||||
| Component: | Xtext | Assignee: | Project Inbox <tmf.xtext-inbox> | ||||
| Status: | CLOSED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | Holger.Schill, sebastian.zarnekow | ||||
| Version: | 2.0.1 | Flags: | sebastian.zarnekow:
indigo+
|
||||
| Target Milestone: | SR2 | ||||||
| Hardware: | PC | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Hendrik Eeckhaut
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 Closing all bugs that were set to RESOLVED before Neon.0 |