|
Re: How to contribute "Toggle Breakpoint" with org.eclipse.ui.menus extension point [message #1498274 is a reply to message #929851] |
Thu, 04 December 2014 09:42 |
|
Dear all,
I have a similar problem, but for the popup menu on the ruler bar.
I have the following elements in my plugin.xml.
<extension point="org.eclipse.ui.handlers">
<handler
class="io.sarl.lang.ui.SARLExecutableExtensionFactory:org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate"
commandId="io.sarl.lang.SARL.breakpoint.ToggleBreakpointCommand">
<activeWhen>
<reference definitionId="io.sarl.lang.SARL.Editor.opened"/>
</activeWhen>
</handler>
</extension>
<extension point="org.eclipse.ui.commands">
<command
description="%action.label.0"
id="io.sarl.lang.SARL.breakpoint.ToggleBreakpointCommand"
name="%action.label.0"/>
</extension>
<extension point="org.eclipse.ui.menus">
<menuContribution locationURI="popup:io.sarl.lang.SARL.RulerContext?after=debug">
<command
commandId="io.sarl.lang.SARL.breakpoint.ToggleBreakpointCommand"
id="io.sarl.lang.SARL.rulerContextMenu.toggleBreakpointAction"/>
</menuContribution>
</extension>
The old version of my plugin.xml was:
<extension point="org.eclipse.ui.popupMenus">
<viewerContribution
targetID="io.sarl.lang.SARL.RulerContext"
id="io.sarl.lang.SARL.RulerPopupActions">
<action
label="%action.label.0"
class="io.sarl.lang.ui.SARLExecutableExtensionFactory:org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate"
menubarPath="debug"
id="io.sarl.lang.SARL.rulerContextMenu.toggleBreakpointAction">
</action>
</viewerContribution>
</extension>
My problem in the new version of my plugin.xml is that the type "org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate" is not a IHandler.
I have not found the corresponding handler.
Does anyone have an idea?
Stéphane.
|
|
|
Powered by
FUDForum. Page generated in 0.02812 seconds