Integrate content assistance in properties view of GMF editor (XtextSourceViewer) [message #529242] |
Fri, 23 April 2010 10:37  |
Eclipse User |
|
|
|
Hi
I managed to integrate the Xtext parser and serializer for my DSL into an XtextSourceViewer I use within the Properties view of my GMF editor. My attempts to integrate content assistance failed so far:
org.eclipse.xtext.common.TerminalsStandaloneSetup.doSetup();
Injector injector = Guice.createInjector(new MyDslUiModule());
XtextSourceViewerConfiguration config = new XtextSourceViewerConfiguration();
injector.injectMembers(config);
XtextSourceViewer sourceViewer = new XtextSourceViewer(...);
sourceViewer.configure(conf);
Guice.createInjector(new MyDslUiModule()) produces a com.google.inject.CreationException:
Guice configuration errors:
org.eclipse.xtext.ui.common.editor.templates.XtextTemplateSt ore. <init>(XtextTemplateStore.java:41):
Binding to org.eclipse.jface.preference.IPreferenceStore not found. No bindings to that type were found.
Does anybody have an idea how to integrate Xtext content assistance in (Xtext)SourceViewers?
Thanks in advance and best regards,
Matt
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.09982 seconds