Class RulerEnableDisableBreakpointActionDelegate
java.lang.Object
org.eclipse.ui.actions.ActionDelegate
org.eclipse.ui.texteditor.AbstractRulerActionDelegate
org.eclipse.debug.ui.actions.RulerEnableDisableBreakpointActionDelegate
- All Implemented Interfaces:
EventListener, IMenuListener, MouseListener, IActionDelegate, IActionDelegate2, IEditorActionDelegate
Toggles enablement of a breakpoint in a vertical ruler.
This action can be contributed to a vertical ruler context menu via the
popupMenus extension point, by referencing the ruler's context
menu identifier in the targetID attribute.
<extension point="org.eclipse.ui.popupMenus">
<viewerContribution
targetID="example.rulerContextMenuId"
id="example.RulerPopupActions">
<action
label="Enable Breakpoint"
class="org.eclipse.debug.ui.actions.RulerEnableDisableBreakpointActionDelegate"
menubarPath="additions"
id="example.rulerContextMenu.toggleBreakpointAction">
</action>
</viewerContribution>
Clients may refer to this class as an action delegate in plug-in XML.
- Since:
- 3.2
- Restriction:
- This class is not intended to be subclassed by clients.
- Restriction:
- This class is not intended to be instantiated by clients.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected IActioncreateAction(ITextEditor editor, IVerticalRulerInfo rulerInfo) The factory method creating the underlying action.Methods inherited from class AbstractRulerActionDelegate
menuAboutToShow, mouseDoubleClick, mouseDown, mouseUp, run, runWithEvent, selectionChanged, setActiveEditorMethods inherited from class ActionDelegate
dispose, init
-
Constructor Details
-
RulerEnableDisableBreakpointActionDelegate
public RulerEnableDisableBreakpointActionDelegate()
-
-
Method Details
-
createAction
Description copied from class:AbstractRulerActionDelegateThe factory method creating the underlying action.- Specified by:
createActionin classAbstractRulerActionDelegate- Parameters:
editor- the editor the action to be created will work onrulerInfo- the vertical ruler the action to be created will work on- Returns:
- the created action
-