|State Machine Diagrams - Get selected object [message #530127]
||Wed, 28 April 2010 15:01
Registered: April 2010
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.
Powered by FUDForum
. Page generated in 0.01662 seconds