Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Xtext Editor / CellEditor in e4 RCP
Xtext Editor / CellEditor in e4 RCP [message #1397367] Wed, 09 July 2014 16:11
m k is currently offline m kFriend
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)
...
Previous Topic:XtextResource.save() containing strings with carriage return
Next Topic:[XBase] Corss-referencing function definitions
Goto Forum:
  


Current Time: Tue Apr 23 09:00:32 GMT 2024

Powered by FUDForum. Page generated in 0.03144 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top