Skip to main content

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 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:State Machine Diagrams - Get selected object
Next Topic:is there an object diagram in Eclipse UML2
Goto Forum:

Current Time: Wed Nov 14 20:29:45 GMT 2018

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

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

Back to the top