|
Re: Popup menu enabling for a specific named UML package? [message #1691803 is a reply to message #1691796] |
Thu, 09 April 2015 19:04 |
|
Hi,
Obviously, we cannot help with commercial products outside of our
experience in this Eclipse UML2 forum, but I can suggest an alternative
approach that may give you the flexibility that you need.
Assuming that the selection either contains the actual UML model
elements, or some kind of viewer objects that are adaptable to them,
you could use the org.eclipse.ui.menus extension point with its more
flexible XML enablement expressions. These expressions let you test
arbitrary properties of objects, provided that some PropertyTester is
contributed on the org.eclipse.core.expressions.propertyTesters
extension point to implement that property. If necessary, you can
contribute such properties in your own plug-in in its own namespace.
That would let you make menu contributions conditional on the element
name or anything else that you could imagine.
have a look through the documentation of these extension points for
more information and examples:
org.eclipse.core.expressions.propertyTesters
org.eclipse.ui.menus
org.eclipse.ui.commands
org.eclipse.ui.handlers
HTH,
Christian
|
|
|
Powered by
FUDForum. Page generated in 0.02432 seconds