Package org.eclipse.ui.texteditor
Class SelectAnnotationRulerAction
java.lang.Object
org.eclipse.core.commands.common.EventManager
org.eclipse.jface.action.AbstractAction
org.eclipse.jface.action.Action
org.eclipse.ui.texteditor.ResourceAction
org.eclipse.ui.texteditor.TextEditorAction
org.eclipse.ui.texteditor.SelectAnnotationRulerAction
- All Implemented Interfaces:
- IAction,- IVerticalRulerListener,- IUpdate
A ruler action which can select the textual range of an annotation that has a
 visual representation in a vertical ruler.
- Since:
- 3.0
- 
Field SummaryFields inherited from interface org.eclipse.jface.action.IActionAS_CHECK_BOX, AS_DROP_DOWN_MENU, AS_PUSH_BUTTON, AS_RADIO_BUTTON, AS_UNSPECIFIED, CHECKED, DESCRIPTION, ENABLED, HANDLED, IMAGE, RESULT, TEXT, TOOL_TIP_TEXT
- 
Constructor SummaryConstructorsConstructorDescriptionSelectAnnotationRulerAction(ResourceBundle bundle, String prefix, ITextEditor editor) Creates a new action for the given ruler and editor.
- 
Method SummaryModifier and TypeMethodDescriptionvoidannotationContextMenuAboutToShow(VerticalRulerEvent event, Menu menu) Called when the context menu is opened on an annotation in the vertical ruler.voidCalled when a default selection occurs on an annotation in the vertical ruler.voidCalled when an annotation is selected in the vertical ruler.protected IAnnotationModelReturns theAbstractMarkerAnnotationModelof the editor's input.voidsetEditor(ITextEditor editor) Retargets this action to the given editor.Methods inherited from class org.eclipse.ui.texteditor.TextEditorActioncanModifyEditor, getTextEditor, update, validateEditorInputStateMethods inherited from class org.eclipse.ui.texteditor.ResourceActiongetString, initialize, setHelpContextIdMethods inherited from class org.eclipse.jface.action.ActionconvertAccelerator, convertAccelerator, findKeyCode, findKeyString, findModifier, findModifierString, getAccelerator, getActionDefinitionId, getDescription, getDisabledImageDescriptor, getHelpListener, getHoverImageDescriptor, getId, getImageDescriptor, getMenuCreator, getStyle, getText, getToolTipText, isChecked, isEnabled, isHandled, notifyResult, removeAcceleratorText, removeMnemonics, run, runWithEvent, setAccelerator, setActionDefinitionId, setChecked, setDescription, setDisabledImageDescriptor, setEnabled, setHelpListener, setHoverImageDescriptor, setId, setImageDescriptor, setMenuCreator, setText, setToolTipTextMethods inherited from class org.eclipse.jface.action.AbstractActionaddPropertyChangeListener, firePropertyChange, firePropertyChange, removePropertyChangeListenerMethods inherited from class org.eclipse.core.commands.common.EventManageraddListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
- 
Constructor Details- 
SelectAnnotationRulerActionCreates a new action for the given ruler and editor. The action configures its visual representation from the given resource bundle.- Parameters:
- bundle- the resource bundle
- prefix- a prefix to be prepended to the various resource keys (described in- ResourceActionconstructor), or- nullif none
- editor- the editor
- See Also:
 
 
- 
- 
Method Details- 
setEditorDescription copied from class:TextEditorActionRetargets this action to the given editor.- Overrides:
- setEditorin class- TextEditorAction
- Parameters:
- editor- the new editor, or- nullif none
 
- 
getAnnotationModelReturns theAbstractMarkerAnnotationModelof the editor's input.- Returns:
- the marker annotation model or nullif there's none
 
- 
annotationSelectedDescription copied from interface:IVerticalRulerListenerCalled when an annotation is selected in the vertical ruler.- Specified by:
- annotationSelectedin interface- IVerticalRulerListener
- Parameters:
- event- the annotation event that occurred
 
- 
annotationDefaultSelectedDescription copied from interface:IVerticalRulerListenerCalled when a default selection occurs on an annotation in the vertical ruler.- Specified by:
- annotationDefaultSelectedin interface- IVerticalRulerListener
- Parameters:
- event- the annotation event that occurred
 
- 
annotationContextMenuAboutToShowDescription copied from interface:IVerticalRulerListenerCalled when the context menu is opened on an annotation in the vertical ruler.- Specified by:
- annotationContextMenuAboutToShowin interface- IVerticalRulerListener
- Parameters:
- event- the annotation event that occurred
- menu- the menu that is about to be shown
 
 
-