Xtext Editor / CellEditor in e4 RCP [message #1397367] |
Wed, 09 July 2014 16:11 |
m k Messages: 6 Registered: June 2013 |
Junior Member |
|
|
hello all
i was trying different ways of integrating an xtext editor / XTextStyledCellEditor
into an e4 RCP application, all ending up in very simmilar nullpointer exceptions that seem to indicate that the reason is that IWorkbench is null.
so my question is, is there any way of getting around this problem (using 3.x compatibility maybe)?
or more general, is there any known way at all to use xtext editors in e4 RCP?
thanks in advance for any infos
cheers
m_k
PS: first thing i tried is based on the code found here:
http://stackoverflow.com/questions/15324481/xtext-dsl-embedded-editor-in-a-dialog
afterwards i tried to directly create a XTextStyledCellEditor.
com.google.inject.ProvisionException: Guice provision errors:
1) null returned by binding at org.eclipse.xtext.ui.shared.internal.SharedModule.configure(SharedModule.java:137)
but org.eclipse.xtext.ui.editor.GlobalURIEditorOpener.workbench is not @Nullable
while locating org.eclipse.ui.IWorkbench
for field at org.eclipse.xtext.ui.editor.GlobalURIEditorOpener.workbench(Unknown Source)
while locating org.eclipse.xtext.ui.editor.GlobalURIEditorOpener
while locating org.eclipse.xtext.ui.editor.IURIEditorOpener
at org.eclipse.xtext.service.MethodBasedModule.configure(MethodBasedModule.java:73)
while locating org.eclipse.xtext.ui.editor.IURIEditorOpener
for field at org.eclipse.xtext.ui.editor.hover.html.DefaultEObjectHoverProvider.uriEditorOpener(Unknown Source)
while locating org.eclipse.xtext.ui.editor.hover.html.DefaultEObjectHoverProvider
while locating org.eclipse.xtext.ui.editor.hover.IEObjectHoverProvider
for field at org.eclipse.xtext.ui.editor.XtextInformationProvider.hoverProvider(Unknown Source)
while locating org.eclipse.xtext.ui.editor.XtextInformationProvider
for field at org.eclipse.xtext.ui.editor.XtextSourceViewerConfiguration.informationProvider(Unknown Source)
while locating org.eclipse.xtext.ui.editor.XtextSourceViewerConfiguration
for field at de.itemis.xtext.utils.jface.viewers.StyledTextXtextAdapter.configuration(Unknown Source)
while locating de.itemis.xtext.utils.jface.viewers.StyledTextXtextAdapter
1 error
at com.google.inject.internal.Errors.throwProvisionExceptionIfErrorsExist(Errors.java:451)
at com.google.inject.internal.MembersInjectorImpl.injectMembers(MembersInjectorImpl.java:65)
at com.google.inject.internal.InjectorImpl.injectMembers(InjectorImpl.java:944)
at de.itemis.xtext.utils.jface.viewers.StyledTextXtextAdapter.<init>(StyledTextXtextAdapter.java:106)
at de.itemis.xtext.utils.jface.viewers.XtextStyledTextCellEditor.createControl(XtextStyledTextCellEditor.java:100)
at org.eclipse.jface.viewers.CellEditor.create(CellEditor.java:260)
...
|
|
|
Powered by
FUDForum. Page generated in 0.04259 seconds