Package org.eclipse.debug.ui.actions
Class RulerRunToLineActionDelegate
java.lang.Object
org.eclipse.ui.actions.ActionDelegate
org.eclipse.ui.texteditor.AbstractRulerActionDelegate
org.eclipse.debug.ui.actions.RulerRunToLineActionDelegate
- All Implemented Interfaces:
- EventListener,- IMenuListener,- MouseListener,- IActionDelegate,- IActionDelegate2,- IEditorActionDelegate
public class RulerRunToLineActionDelegate
extends AbstractRulerActionDelegate
implements IActionDelegate2
A run to line action that can be contributed to a an editor or view. The
 action will perform the "run to line" operation for parts that provide an
 appropriate 
IRunToLineTarget adapter.
 Following is example plug-in XML used to contribute this action to an editor. Note that the label attribute of this action is not displayed in the editor. Instead, the label of the created action is displayed.
 <extension point="org.eclipse.ui.editorActions">
    <editorContribution
          targetID="example.editor"
          id="example.rulerActions">
       <action
             label="Not Used"
             class="org.eclipse.debug.ui.actions.RulerRunToLineActionDelegate"
             style="push"
             actionID="RulerClick"
             id="example.doubleClickBreakpointAction"/>
    </editorContribution>
 </extension>
 
 
 This action can also 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="Run to Line"
         class="org.eclipse.debug.ui.actions.RulerRunToLineActionDelegate"
         menubarPath="additions"
         id="example.rulerContextMenu.runToLineAction">
       </action>
   </viewerContribution>
 
 Clients may refer to this class as an action delegate in plug-in XML.
- Since:
- 3.12
- Restriction:
- This class is not intended to be subclassed by clients.
- Restriction:
- This class is not intended to be instantiated by clients.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected IActioncreateAction(ITextEditor editor, IVerticalRulerInfo rulerInfo) The factory method creating the underlying action.voiddispose()TheActionDelegateimplementation of thisIActionDelegate2method does nothing.voidTheActionDelegateimplementation of thisIActionDelegate2method does nothing.voidrunWithEvent(IAction action, Event event) TheActionDelegateimplementation of thisIActionDelegate2method redirects to therunmethod.voidsetActiveEditor(IAction callerAction, IEditorPart targetEditor) Sets the active editor for the delegate.Methods inherited from class org.eclipse.ui.texteditor.AbstractRulerActionDelegatemenuAboutToShow, mouseDoubleClick, mouseDown, mouseUp, run, selectionChangedMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.ui.IActionDelegaterun, selectionChanged
- 
Constructor Details- 
RulerRunToLineActionDelegatepublic RulerRunToLineActionDelegate()
 
- 
- 
Method Details- 
createActionDescription copied from class:AbstractRulerActionDelegateThe factory method creating the underlying action.- Specified by:
- createActionin class- AbstractRulerActionDelegate
- Parameters:
- editor- the editor the action to be created will work on
- rulerInfo- the vertical ruler the action to be created will work on
- Returns:
- the created action
 
- 
setActiveEditorDescription copied from interface:IEditorActionDelegateSets the active editor for the delegate. Implementors should disconnect from the old editor, connect to the new editor, and update the action to reflect the new editor.- Specified by:
- setActiveEditorin interface- IEditorActionDelegate
- Overrides:
- setActiveEditorin class- AbstractRulerActionDelegate
- Parameters:
- callerAction- the action proxy that handles presentation portion of the action
- targetEditor- the new editor target
 
- 
initDescription copied from class:ActionDelegateTheActionDelegateimplementation of thisIActionDelegate2method does nothing. Subclasses may reimplement.- Specified by:
- initin interface- IActionDelegate2
- Overrides:
- initin class- ActionDelegate
- Parameters:
- action- the proxy action that handles the presentation portion of the action.
 
- 
disposepublic void dispose()Description copied from class:ActionDelegateTheActionDelegateimplementation of thisIActionDelegate2method does nothing. Subclasses may reimplement.- Specified by:
- disposein interface- IActionDelegate2
- Overrides:
- disposein class- ActionDelegate
 
- 
runWithEventDescription copied from class:ActionDelegateTheActionDelegateimplementation of thisIActionDelegate2method redirects to therunmethod. Subclasses may reimplement.- Specified by:
- runWithEventin interface- IActionDelegate2
- Overrides:
- runWithEventin class- AbstractRulerActionDelegate
- Parameters:
- action- the action proxy that handles the presentation portion of the action
- event- the SWT event which triggered this action being run
 
 
-