[kepler-dev] [Bug 2150] - 'Edit Custom Icon' menu item doesn't work

bugzilla-daemon@ecoinformatics.org bugzilla-daemon at ecoinformatics.org
Mon Dec 19 00:21:19 PST 2005


http://bugzilla.ecoinformatics.org/show_bug.cgi?id=2150





------- Additional Comments From cxh at eecs.berkeley.edu  2005-12-19 00:21 -------
On this one, we need a better way to handle Kepler specific menus in the
Ptolemy classes that does not require duplicating the Ptolemy code.

One such way would be to use the configuration to configure the menu choices.
In this case, the menu comes from vergil/basic/WithIconGraphController.java.
We could modify that class so that it skips adding the menu if a the configuration
has a specific tag.  At the minimum we need some naming conventions for these
tags.  For example, if the configuration contained a property
"_menuActorEditIcon" that was set to false, then we would skip adding the
Edit Icon menu choices to the actor context menu.  This is just a trivial
example. . .

Even better would be a way to use the configuration mechanism to configure the
context menus in a more generic fashion. The configuration should allow a user
to add new menu choices, change current menu choices and remove menu choices.

An alternative would be to use an entirely different menu management system,
but this seems like quite a bit of work.  If we went that far, then perhaps
going to Eclipse would seem worth it?

Does anyone have any suggestions?


More information about the Kepler-dev mailing list