Accessing eRessource or Diagramhttps://www.eclipse.org/forums/index.php/mv/msg/277474/780916/#msg_780916
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.

Best regards

Bjoern]]>Bjoern Ickx2012-01-19T22:22:07-00:00Re: Accessing eRessource or Diagramhttps://www.eclipse.org/forums/index.php/mv/msg/277474/781187/#msg_781187
it's not really an API (we get one in Graphiti 0.9.0) but you can cast the
active editor to DiagramEditor and call
getDiagramTypeProvider().getDiagram().