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



PS: first thing i tried is based on the code found here:

afterwards i tried to directly create a XTextStyledCellEditor. Guice provision errors:

1) null returned by binding at org.eclipse.xtext.ui.shared.internal.SharedModule.configure(
 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(
  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 de.itemis.xtext.utils.jface.viewers.StyledTextXtextAdapter.<init>(
	at de.itemis.xtext.utils.jface.viewers.XtextStyledTextCellEditor.createControl(
	at org.eclipse.jface.viewers.CellEditor.create(
Previous containing strings with carriage return
Next Topic:[XBase] Corss-referencing function definitions
Goto Forum:

Current Time: Fri Apr 10 20:31:59 GMT 2020

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

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

Back to the top