|
| Re: Opening instance of .ecore in GMF diagram [message #669442 is a reply to message #668429] |
Tue, 10 May 2011 07:12  |
Adrian Civil Messages: 10 Registered: January 2011 |
Junior Member |
|
|
URI newURI = URI.createURI("file:/C:/xyz");
IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
try {
page.openEditor(new URIEditorInput(newURI), XYZ.diagram.part.XYZDiagramEditor.ID);
} catch (PartInitException e) {
e.printStackTrace();
}
Or get the URI from the resource that you have. Not sure if this is the correct way to do it, but you could give it a try...
|
|
|
Powered by
FUDForum. Page generated in 0.01680 seconds