I have a pretty annoying bug and I hope you can help me to solve it.
So here's the problem:
I've created a datamodel with EMF and use graphiti to provide a graphical representation. Whenever I close eclipse while a diagram is still open next time I start eclipse the diagram is broken and says: "No Diagram found for URI 'platform"
It seems like it cant find the related EMF model.
Any idea why this happens or could you give me some advice about how to change the loading behavior of graphiti.
Michael Wenz Messages: 1595 Registered: July 2009 Location: Walldorf, Germany
you should make sure that your diagram is really persisted within an EMF
resource file on harddisk and that the url can be resolved. The reopening
process uses the url of the diagram that is stored within a so-called
Memento when Eclipse shuts down. On Eclipse startup the Memento is passed to
an editor input factory (in the Graphiti case DiagramEditorInputFactory) to
create the editor input again. The createElement method in that class should
be a good starting point for debugging...