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 #530127] Wed, 28 April 2010 15:01
zsolt is currently offline zsoltFriend
Messages: 2
Registered: April 2010
Junior Member
Hello.

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.
zsolt
Previous Topic:Ecore meta model for my UML2 Tools
Next Topic:State Machine Diagrams - Get selected object
Goto Forum:
  


Current Time: Fri Apr 26 09:48:39 GMT 2024

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

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

Back to the top