Diagram file won't open, Editor could not be initialized. [message #208145] |
Thu, 09 October 2008 05:43  |
Eclipse User |
|
|
|
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 06:29  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.24641 seconds