|Accessing eRessource or Diagram [message #780916]
||Thu, 19 January 2012 22:22
| Bjoern Ickx
Registered: June 2011
I need to access the business objects of an open diagram. When I do this with a selection listener and select an object within the graphiti editor it works nice. However, now I need to do this without selecting something.
I have a simple model with "Processes" and "Flows"
I want to iterate through all "Processes" I modeled with the Graphiti editor. I think I need the eRessource the diagram is using to do this -> resource.getAllContents()
So I simple need the "Diagram" object, or eResource of the open diagram, or at least the DiagramTypeProvider of the open diagram.
By using the Graphiti interface I could only access LayoutService, GaCreateService ... PeService. Non of them delivers the above mentioned objects (Diagram, DiagramTypeProvider, eResource).
Is there a Graphiti API to access them? Or another way to get access to the instantiated objects of my model the graphiti editor has created?
Thanks in advance.
[Updated on: Thu, 19 January 2012 22:23]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.02557 seconds