Opening instance of .ecore in GMF diagram [message #668429] |
Thu, 05 May 2011 16:27 |
|
Hey everyone,
I got into a little trouble trying to programmatically open an instance of my ecore model in a gmf-diagram. The instance I would like to display is in a Resource and I try to open it in a rcp application.
I have already tried this:
MyDiagramEditorUtil.openDiagram(myResource);
but this causes this error:
java.lang.NullPointerException
at org.eclipse.core.runtime.Path.<init>(Path.java:153)
at my.diagram.part.MyDiagramEditorUtil.openDiagram(MyDiagramEditorUtil.java:82)
DiagramEditorUtil seems like a good starting point for my approach, e.g. using the runWizard() method worked fine, but I do not want to use this wizard. Or am I totally wrong at this point?
Hope someone could help. Thanks upfront
Best regards,
David
|
|
|
|
Powered by
FUDForum. Page generated in 0.02983 seconds