Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » Loading an existing model to a Graphiti Editor(Is it possible to load an existing EMF based model to a corresponding Graphiti Editor based on same domain classes? If yes, what step do I need to do?)
icon5.gif  Loading an existing model to a Graphiti Editor [message #1018219] Wed, 13 March 2013 12:27 Go to next message
Armands Šlihte is currently offline Armands ŠlihteFriend
Messages: 1
Registered: March 2013
Junior Member
Hi Guys,

I am new to Graphiti and currently I am planning to develop an editor for a domain model, which I acquire via transformation (ATL/M2M). So I want the editor to display an existing model and then enable also the user to make further changes to this model in the editor. But the initial model (Business Object) should be loaded up front.

Is this possible, assuming that I build a corresponding Graphiti Editor for my domain based on the same classes as my EMF for this domain? If yes, what are the steps I need to take?

Any input would be highly appreciated!

Thanks and Best Regards,
Armands
Re: Loading an existing model to a Graphiti Editor [message #1020618 is a reply to message #1018219] Mon, 18 March 2013 15:18 Go to previous message
Michael Wenz is currently offline Michael WenzFriend
Messages: 1931
Registered: July 2009
Location: Walldorf, Germany
Senior Member
Armands,

the easiest way would probably be to provide some functionality (create
diagram or something similar) that creates a new Graphiti diagram and
populates it with the needed domain objects. An example is available in the
final tutorial plugin in the SDK download, it adds a context menu entry for
creating a new diagram containing all classes of the project.

You can check out the classes in this package
http://git.eclipse.org/c/gmp/org.eclipse.gmp.graphiti.git/tree/examples/org.eclipse.graphiti.examples.tutorial/src/org/eclipse/graphiti/examples/tutorial/handlers

Michael
Previous Topic:Enable injecting behavior objects in DiagramBehavior
Next Topic:The location isn't set for DoubleClickFeatures
Goto Forum:
  


Current Time: Tue Apr 23 15:25:35 GMT 2024

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

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

Back to the top