contributing to context menu during debug [message #326286] |
Thu, 13 March 2008 17:34 |
Eclipse User |
|
|
|
Originally posted by: subs.consertum.com
Hi,
I am contributing to an editors context menu (the CEditor), and only
want the contribution to appear when I am debugging.
The plugin.xml snippet below, *almost* does what I want, except that it
is enabled/disabled whereas I want it visible/invisible.
Can anybody suggest a better way to do this?
<extension point="org.eclipse.ui.popupMenus">
<viewerContribution targetID="#CEditorContext"
id="popup.contribution">
<action
class="ActionDelegate"
id="popup.action"
label="%popup.action"
menubarPath="additions">
<enablement>
<pluginState
value="activated"
id="org.eclipse.cdt.debug.ui">
</pluginState>
</enablement>
</action>
</viewerContribution>
</extension>
thanks,
--
Derek
|
|
|
Powered by
FUDForum. Page generated in 0.02979 seconds