Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » Graphiti Diagram doesn't load on startup
Graphiti Diagram doesn't load on startup [message #1008682] Wed, 13 February 2013 15:00 Go to next message
Lars Schulte is currently offline Lars SchulteFriend
Messages: 4
Registered: December 2012
Junior Member
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.

Greetings
Lars
Re: Graphiti Diagram doesn't load on startup [message #1009726 is a reply to message #1008682] Fri, 15 February 2013 15:41 Go to previous message
Michael Wenz is currently offline Michael WenzFriend
Messages: 1931
Registered: July 2009
Location: Walldorf, Germany
Senior Member
Lars,

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...

HTH,
Michael
Previous Topic:Connection Decorator with Text
Next Topic:Linking with my own ecore model
Goto Forum:
  


Current Time: Tue Apr 23 13:03:26 GMT 2024

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

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

Back to the top