Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 Tools » How to retrieve the current package?
How to retrieve the current package? [message #625525] Thu, 04 March 2010 15:42
Itamar is currently offline ItamarFriend
Messages: 39
Registered: November 2009
Hello !

I am trying to create a new view in Eclipse that - like the Outline view - is sensitive to the current selection, but should analyze elements in a UML class diagram.

I managed to register a new ISelectionListener to catch any SelectionChangeEvent that the UML editor publishes.

I can get the publisher (an instance of org.eclipse.uml2.diagram.clazz.part.UMLDiagramEditor), and the published selection (a StructuredSelection containing instances of*).

However, I cannot find any way to retrieve the currently-edited package (an instance of org.eclipse.uml2.uml.* ?).

I'd appreciate any help :)
Previous Topic:Sequence Diagram with Eclipse
Next Topic:Reorder properties in class?
Goto Forum:

Current Time: Sun Apr 22 12:56:00 GMT 2018

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

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