using xtext editors in a Rich Client [message #48223] |
Thu, 04 June 2009 16:28  |
Eclipse User |
|
|
|
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
{
.....
}
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04112 seconds