Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » Graphiti - Eclipse EMF
Graphiti - Eclipse EMF [message #1258613] Thu, 27 February 2014 15:06 Go to next message
Simone Di Cola is currently offline Simone Di ColaFriend
Messages: 60
Registered: February 2014
Member
Hi all,
It is not clear to me how I can link an .ecore diagram to Graphiti. Can someone please explain me how to do it? Sorry for the silly question, but I am quite confuesed as the provided tutorial only uses general EClass and EReference.

Thanks for your attention
Simone
Re: Graphiti - Eclipse EMF [message #1258659 is a reply to message #1258613] Thu, 27 February 2014 16:03 Go to previous messageGo to next message
Michael Wenz is currently offline Michael WenzFriend
Messages: 1931
Registered: July 2009
Location: Walldorf, Germany
Senior Member
Simone,

I'm not sure what you mean with "link an .ecore diagram to Graphiti"?

Usually you have file extensions for a diagram (type) you create in
Graphiti. This extension would be associated with the DiagramEditor by using
the Eclipse editors extension point (so that double clicking that file by
default opens the diagram editor).

An ecore diagram file is at least in my understanding a file that has been
created using the Ecore tools diagram editor. This is not a Graphiti based
tool, so it will not be possible to open this file using the Graphiti
diagram editor.

Michael
Re: Graphiti - Eclipse EMF [message #1258667 is a reply to message #1258659] Thu, 27 February 2014 16:15 Go to previous messageGo to next message
Simone Di Cola is currently offline Simone Di ColaFriend
Messages: 60
Registered: February 2014
Member
Thanks for your answer Michael.
What I wanted to say is, if I design my domain model in EMF, how can I use this model in Graphiti? In GMF is quite straightforward, but it is not so clear (to me) in Graphiti.

Hope the question is clearer now.

Simone
Re: Graphiti - Eclipse EMF [message #1259460 is a reply to message #1258667] Fri, 28 February 2014 11:56 Go to previous message
Michael Wenz is currently offline Michael WenzFriend
Messages: 1931
Registered: July 2009
Location: Walldorf, Germany
Senior Member
Simone,

after designing your EMF model you have an Eclipse plugin containing the
generated code for that model. You can simply reference that plugin from
your tool plugin and work with the model. Basically this is shown in the
tutorial, just that the tutorial uses the Ecore model itself.

Michael
Previous Topic:Refreshing the Diagram Editor
Next Topic:Graphiti Model Objects and Diagram
Goto Forum:
  


Current Time: Fri Apr 26 22:34:55 GMT 2024

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

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

Back to the top