|
Eclipse Platform Release 3.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jface.action.Action
org.eclipse.ui.texteditor.ResourceAction
org.eclipse.ui.texteditor.TextEditorAction
org.eclipse.ui.texteditor.SelectAnnotationRulerAction
A ruler action which can select the textual range of an annotation that has a visual representation in a vertical ruler.
Field Summary |
Fields inherited from interface org.eclipse.jface.action.IAction |
AS_CHECK_BOX, AS_DROP_DOWN_MENU, AS_PUSH_BUTTON, AS_RADIO_BUTTON, AS_UNSPECIFIED, CHECKED, DESCRIPTION, ENABLED, IMAGE, RESULT, TEXT, TOOL_TIP_TEXT |
Constructor Summary | |
SelectAnnotationRulerAction(ResourceBundle bundle,
String prefix,
ITextEditor editor)
Creates a new action for the given ruler and editor. |
Method Summary | |
void |
annotationContextMenuAboutToShow(VerticalRulerEvent event,
Menu menu)
Called when the context menu is opened on an annotation in the vertical ruler. |
void |
annotationDefaultSelected(VerticalRulerEvent event)
Called when a default selection occurs on an annotation in the vertical ruler. |
void |
annotationSelected(VerticalRulerEvent event)
Called when an annotation is selected in the vertical ruler. |
protected IAnnotationModel |
getAnnotationModel()
Returns the AbstractMarkerAnnotationModel of the editor's input. |
void |
setEditor(ITextEditor editor)
Retargets this action to the given editor. |
Methods inherited from class org.eclipse.ui.texteditor.TextEditorAction |
canModifyEditor, getTextEditor, update, validateEditorInputState |
Methods inherited from class org.eclipse.ui.texteditor.ResourceAction |
getString, initialize, setHelpContextId |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SelectAnnotationRulerAction(ResourceBundle bundle, String prefix, ITextEditor editor)
bundle
- the resource bundleprefix
- a prefix to be prepended to the various resource keys
(described in ResourceAction
constructor), or null
if noneeditor
- the editorResourceAction.ResourceAction(ResourceBundle, String)
Method Detail |
public void setEditor(ITextEditor editor)
TextEditorAction
setEditor
in class TextEditorAction
editor
- the new editor, or null
if noneprotected IAnnotationModel getAnnotationModel()
AbstractMarkerAnnotationModel
of the editor's input.
null
if there's nonepublic void annotationSelected(VerticalRulerEvent event)
IVerticalRulerListener
annotationSelected
in interface IVerticalRulerListener
event
- the annotation event that occurredpublic void annotationDefaultSelected(VerticalRulerEvent event)
IVerticalRulerListener
annotationDefaultSelected
in interface IVerticalRulerListener
event
- the annotation event that occurredpublic void annotationContextMenuAboutToShow(VerticalRulerEvent event, Menu menu)
IVerticalRulerListener
annotationContextMenuAboutToShow
in interface IVerticalRulerListener
event
- the annotation event that occurredmenu
- the menu that is about to be shown
|
Eclipse Platform Release 3.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2004. All rights reserved.