Using Graphiti with an emf based model [message #736756] |
Fri, 14 October 2011 05:55  |
Eclipse User |
|
|
|
Hello everyone,
I´m new to Graphiti and I´m facing some dificulties.
I took a look at HelpContents and it was really helpfull.
However, I can see that the examples are based in the ecore model but now, I would like to use another EMF based model (built with Ecore Graphic Editor available with the EMF Framework).
Can anyone point me the direction?
Thanks,
Joao
|
|
|
Re: Using Graphiti with an emf based model [message #736871 is a reply to message #736756] |
Fri, 14 October 2011 08:17   |
Eclipse User |
|
|
|
Hi Joao. The tutorial uses, as model example, the EMF metamodel (ladder.ecore => EClass, EPackage , Ereference etc), just because it is handy (it's available, no need to create an ad-hoc model for a tutorial), but there's nothing special about it.
You, the Graphiti user, will tipically have another model, with its ecore definition and its generated interfaces/classes say mylibrary.ecore => Book, Library, etc . Then , in your own plugin, you will (roughly) use "Book" in the places where the tutorial uses "EClass" and so on.
|
|
|
|
|
Re: Using Graphiti with an emf based model [message #741163 is a reply to message #736934] |
Wed, 19 October 2011 04:36  |
Eclipse User |
|
|
|
Maybe I can help out.
The coding for the project explorer tree showing the classes and relations
is part of the org.eclipse.graphiti.examples.common plugin (package
navigator and subpackages). You can have a look on how to do that there.
It's all based upon the Eclipse project explorer APIs.
HTH,
Michael
|
|
|
Powered by
FUDForum. Page generated in 0.07335 seconds