|Starting a new Graphiti project [message #847438]
||Tue, 17 April 2012 05:58
| IKOU TUNE
Registered: April 2012
Currently I'm thinking about implementing my first Graphiti editor. I have consulted the documentation of
Graphiti, and also the tutorial given within it.
It is explained these points :
- How does Graphiti work.
- For the tutorial there is Implementation of a Diagram type provider, feature provider and features
But, What is unclear is how can I deal to build my own tool, based in my Ecore Model as domain model??
Really, I don't know how to start? and what type of project should I select?
Pleaaaaaase, I need the answer early!
Thanks in advance.
|Re: Starting a new Graphiti project [message #873592 is a reply to message #871457]
||Fri, 18 May 2012 11:56
| Josef Pohl
Registered: January 2012
If you are using an EMF based metamodel you can simply make reference to it as an import in the your feature definitions. The tutorial uses EClass. Essentially you will need to define features for each element in your model.
For instance if you have a model:
with an element
you would define a CreateXelemFeature class (and AddXelemFeature and so on). Instead of an EClass object you would create an Xelem object...
I hope this helps.
Powered by FUDForum
. Page generated in 0.09050 seconds