Skip to main content



      Home
Home » Modeling » TMF (Xtext) » using xtext editors in a Rich Client
using xtext editors in a Rich Client [message #48223] Thu, 04 June 2009 16:28 Go to next message
Eclipse UserFriend
I ahve a trivial editor and I am trying to make it work inside a RCP. I have
impl'd other text editors inside the RCP but the xtext xtext editor just
opens with a split pane and the word ERROR in the bottom pane. I am passing
a custom IPathEditorInput to the open editor call, put maybe I need a
different editorInput to make this work?

IPath location= new Path(file.getAbsolutePath());

PathEditorInput input= new PathEditorInput(location);

IWorkbenchPage page=
PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActi vePage();

IEditorPart thePart=page.openEditor(input, editorId);



public class PathEditorInput implements IPathEditorInput

{

.....

}
Re: using xtext editors in a Rich Client [message #58380 is a reply to message #48223] Tue, 14 July 2009 08:55 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: c.krause.cwi.nl

Hi Drew,
I encounter the same problem. Did you finally get it working somehow?

Cheers,
Christian

drew wrote:
> I ahve a trivial editor and I am trying to make it work inside a RCP. I have
> impl'd other text editors inside the RCP but the xtext xtext editor just
> opens with a split pane and the word ERROR in the bottom pane. I am passing
> a custom IPathEditorInput to the open editor call, put maybe I need a
> different editorInput to make this work?
>
> IPath location= new Path(file.getAbsolutePath());
>
> PathEditorInput input= new PathEditorInput(location);
>
> IWorkbenchPage page=
> PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActi vePage();
>
> IEditorPart thePart=page.openEditor(input, editorId);
>
>
>
> public class PathEditorInput implements IPathEditorInput
>
> {
>
> ....
>
> }
>
>
Re: using xtext editors in a Rich Client [message #58436 is a reply to message #58380] Tue, 14 July 2009 10:18 Go to previous message
Eclipse UserFriend
I've recently filed an issue about this:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=283086
Previous Topic:[Xtext] ANTLR options
Next Topic:No getter or adder for 'genmodels' (EcoreGeneratorFragment)
Goto Forum:
  


Current Time: Fri May 02 08:35:22 EDT 2025

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

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

Back to the top