Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » Popup menu enabling for a specific named UML package?
Popup menu enabling for a specific named UML package? [message #1691796] Thu, 09 April 2015 16:49 Go to next message
James Clark is currently offline James ClarkFriend
Messages: 9
Registered: July 2009
Junior Member

<meta http-equiv="content-type" content="text/html; charset=utf-8">
<body text="#000000" bgcolor="#FFFFFF">
I’ve created some popup menus in Rational Software Architect (v9)
that are active based on the type of UML element selected in the
Project Explorer (to invoke appropriate BIRT reports). Below is a
fragment from the popupMenus extension point specification. Is is
possible to modify the action specification below to be enabled for
a UML package of a specific name, say “Normalized Data Objects”?<br>
                        label="Dictionary Report for Package"<br>
                        tooltip="Dictionary report for a model or
                                  &lt;objectState name="@umlType"
                                  <font color="#ff0000">…what here
for a package named “Normalized Data Objects”?</font><br>
<img src=";id=21497" alt=""><br>
  • Attachment: becfbidg.png
    (Size: 30.89KB, Downloaded 226 times)
Re: Popup menu enabling for a specific named UML package? [message #1691803 is a reply to message #1691796] Thu, 09 April 2015 19:04 Go to previous message
Christian Damus is currently offline Christian DamusFriend
Messages: 1261
Registered: July 2009
Location: Canada
Senior Member


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:



Previous Topic:Empty comments in imported XMI-based UML
Next Topic:Sequence Diagrams Repository
Goto Forum:

Current Time: Sat Jun 25 12:15:29 GMT 2022

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

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

Back to the top