Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 Tools » State Machine Diagrams - Get selected object
State Machine Diagrams - Get selected object [message #625620] Wed, 28 April 2010 11:01
zsolt is currently offline zsolt
Messages: 2
Registered: April 2010
Junior Member

I have a State Machine Diagram opened, and I am trying to get its StateMachineEditPart object from my plugin's view.
My first idea was selecting it, then get the diagram's selection:

ISelectionService service = getSite().getWorkbenchWindow().getSelectionService();
IStructuredSelection structured = (IStructuredSelection)service.getSelection("<id>");

This worked on Package Explorer, but I could not find the "id" of the diagram editor.
I hope someone can help me to slove this problem.

Thank you in anticipation.
Previous Topic:State Machine Diagrams - Get selected object
Next Topic:is there an object diagram in Eclipse UML2
Goto Forum:

Current Time: Sat Aug 30 06:38:33 EDT 2014

Powered by FUDForum. Page generated in 0.01995 seconds