dynamic template proposals in xtext revisited [message #1746493] |
Mon, 31 October 2016 08:17 |
Uli Merkel Messages: 250 Registered: June 2013 |
Senior Member |
|
|
xtext_2.8.4.v201508050135.version:
I tried the suggestions from https://www.eclipse.org/forums/index.php/mv/msg/297566/870958/#msg_870958, (from 2012), but got an error:
0 [Worker-7] ERROR org.xtext.example.mydsl.ui.internal.MyDslActivator - Failed to create injector for org.xtext.example.mydsl.MyDsl
0 [Worker-7] ERROR org.xtext.example.mydsl.ui.internal.MyDslActivator - Guice creation errors:
1) A binding to org.eclipse.xtext.ui.editor.contentassist.ITemplateProposalProvider was already configured at org.eclipse.xtext.service.MethodBasedModule.configure(MethodBasedModule.java:56).
at org.eclipse.xtext.service.MethodBasedModule.configure(MethodBasedModule.java:56)
1 error
com.google.inject.CreationException: Guice creation errors:
1) A binding to org.eclipse.xtext.ui.editor.contentassist.ITemplateProposalProvider was already configured at org.eclipse.xtext.service.MethodBasedModule.configure(MethodBasedModule.java:56).
at org.eclipse.xtext.service.MethodBasedModule.configure(MethodBasedModule.java:56)
1 error
Before, I got an error for the @override annotation in the
public class MyDslUiModule extends org.xtext.example.mydsl.ui.AbstractMyDslUiModule {
public MyDslUiModule(AbstractUIPlugin plugin) {
super(plugin);
}
@Override
public Class<? extends ITemplateProposalProvider> bindTemplateProposalProvider() {
return MyTemplateProposalProvider.class;
}
}
So I assume something has changed in the internals of xtext. Perhaps someone can give me a hint what to do to adjust the code; the navigation in the templates is just a too nice feature.
TIA, Uli
[Updated on: Mon, 31 October 2016 08:20] Report message to a moderator
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03991 seconds