Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » contributing to context menu during debug
contributing to context menu during debug [message #326286] Thu, 13 March 2008 17:34
Eclipse UserFriend
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
Previous Topic:Problem with plugin dependencies
Next Topic:javacDebugInfo in build
Goto Forum:
  


Current Time: Sat Nov 02 20:02:24 GMT 2024

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

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

Back to the top