Setting a menu item's name dynamically [message #329180] |
Mon, 16 June 2008 10:47  |
Eclipse User |
|
|
|
This is similar to what was discussed in
http://dev.eclipse.org/newslists/news.eclipse.platform.rcp/m sg23489.html
I am adding a menu item to a file using an object contribution via the
org.eclipse.ui.popupMenus extension point. I want to dynamicaly set the
name of the menu item based on some information stored in the file. If my
plug-in is already loaded I can do so using the selectionChanged
mechanism. If it's not loaded, it currently always uses the name that is
statically defined in plugin.xml.
I might be able to make the solution proposed in the above mentioned
thread work in my scenario, but it doesn't seem to be the ideal way to go.
It uses a property tester which can have the side effect of causing
plug-in activation. Loading the plug-in is actually what I want, but is
there another way to do that?
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03370 seconds