|
Re: Difference between Diagram Type and Diagram Type Provider [message #731561 is a reply to message #731542] |
Sat, 01 October 2011 18:22 |
Hernan Gonzalez Messages: 188 Registered: October 2010 Location: Buenos Aires, Argentina |
Senior Member |
|
|
When you code a Graphiti application, you tipically define your own DiagramType (basically, a string identifier) and its DiagramTypeProvider (basically a Java class. that is associated to a DiagramType; the declaration is done in your plugin.xml. This is explained in the first pages of the tutorial ("Features" and "Diagram").
In the typical workflow, When a diagram is saved, its DiagramType is saved inside it. And when the Graphiti editor loads it (assuming we are using the default DiagramEditor), it discovers the type, and find a declared DiagramTypeProvider that understand that type, and instantiates its Java class. This object will provide the editor with all the behaviour and features to show/manipulate the diagram.
[Updated on: Sat, 01 October 2011 18:23] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.07410 seconds