Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Diagram file won't open, Editor could not be initialized.
Diagram file won't open, Editor could not be initialized. [message #208145] Thu, 09 October 2008 09:43 Go to next message
Gary is currently offline GaryFriend
Messages: 125
Registered: July 2009
Senior Member
Hi, I have created a tool in GMF however I cannot open a diagram file
through eather of the following:

double-click on file
right-click on file > open

The only way I can open the diagram file is by 'File > Open'.
(however this way a user must browse for the file, though it is already in
the workspace).

Below is the error I get when trying to open a diagram file in one of the
other two ways that I mentioned above:

Could not open the editor: Editor could not be initialized.
java.lang.NullPointerException
at
org.eclipse.gmf.runtime.diagram.ui.resources.editor.parts.Di agramDocumentEditor$1.run(DiagramDocumentEditor.java:120)
at
org.eclipse.jface.operation.ModalContext.runInCurrentThread( ModalContext.java:446)
etc....

...Any Ideas how I could reslove this issue?
(I find it rather strange that I can open the diagram by use of 'File >
Open', but not in any of the other ways!

Thank you in advance,
Gary
Re: Diagram file won't open, Editor could not be initialized. [message #208675 is a reply to message #208145] Wed, 15 October 2008 10:29 Go to previous message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Gary,

> java.lang.NullPointerException
> at org.eclipse.gmf.runtime.diagram.ui.resources.editor.parts.Di agramDocumentEditor$1.run(DiagramDocumentEditor.java:120)
DiagramDocumentEditor.java:120 -> getDocumentProvider().setProgressMonitor(monitor);

So, you have to check why null was returned from getDocumentProvider() call..

-----------------
Alex Shatalin
Previous Topic:XXXViewFactory.decorateView -> different behavior in GMF 2.1 vs. GMF 2.1.1
Next Topic:Can't show subnodes shortcut of the diagram node
Goto Forum:
  


Current Time: Fri Apr 19 00:04:47 GMT 2024

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

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

Back to the top