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 #530127] Wed, 28 April 2010 15:01
zsolt is currently offline zsoltFriend
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:Ecore meta model for my UML2 Tools
Next Topic:State Machine Diagrams - Get selected object
Goto Forum:

Current Time: Sun Nov 29 10:57:44 GMT 2015

Powered by FUDForum. Page generated in 0.01534 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software