creating dynamic visibleWhen expression [message #329813] |
Sun, 06 July 2008 17:02  |
Eclipse User |
|
|
|
Originally posted by: novs.gmx.net
Hi,
I declared created a definition using the
"org.eclipse.core.expressions.definitions" definition point which is
attached to some menu and toolbar entries as visibleWhen expression, so
that they are only shown when an editor is open. However, some of the
toolbar items are not created via plugin.xml but during runtime as
CommandContributionItems. My problem is, that I'd like to attach the same
expression to these dynamically created items but the registerVisibleWhen
method from the MenuService seems to be no longer available. Is there an
alternative?
Thanks very much for your help,
Chris
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03470 seconds