/** * Creates a new action for the given text editor. The action configures its * visual representation from the given resource bundle. * * @param bundle the resource bundle * @param prefix a prefix to be prepended to the various resource keys * (described in <code>ResourceAction</code> constructor), or * <code>null</code> if none * @param editor the text editor * @param forward <code>true</code> to go to next and <code>false</code> to go to previous annotation * @see TextEditorAction#TextEditorAction(ResourceBundle, String, ITextEditor) */ public GotoAnnotationAction(ResourceBundle bundle, String prefix, ITextEditor editor, boolean forward) { super(bundle, prefix, editor); fForward= forward; setHelpContextId(fForward ? IAbstractTextEditorHelpContextIds.GOTO_NEXT_ANNOTATION_ACTION : IAbstractTextEditorHelpContextIds.GOTO_PREVIOUS_ANNOTATION_ACTION); }
/** * Creates a new action for the given text editor. The action configures its * visual representation from the given resource bundle. * * @param bundle the resource bundle * @param prefix a prefix to be prepended to the various resource keys * (described in <code>ResourceAction</code> constructor), or * <code>null</code> if none * @param editor the text editor * @param forward <code>true</code> to go to next and <code>false</code> to go to previous annotation * @see TextEditorAction#TextEditorAction(ResourceBundle, String, ITextEditor) */ public GotoAnnotationAction(ResourceBundle bundle, String prefix, ITextEditor editor, boolean forward) { super(bundle, prefix, editor); fForward= forward; setHelpContextId(fForward ? IAbstractTextEditorHelpContextIds.GOTO_NEXT_ANNOTATION_ACTION : IAbstractTextEditorHelpContextIds.GOTO_PREVIOUS_ANNOTATION_ACTION); }
/** * Creates a new action for the given text editor. The action configures its * visual representation from the given resource bundle. * * @param bundle the resource bundle * @param prefix a prefix to be prepended to the various resource keys * (described in <code>ResourceAction</code> constructor), or * <code>null</code> if none * @param editor the text editor * @param forward <code>true</code> to go to next and <code>false</code> to go to previous annotation * @see TextEditorAction#TextEditorAction(ResourceBundle, String, ITextEditor) */ public GotoAnnotationAction(ResourceBundle bundle, String prefix, ITextEditor editor, boolean forward) { super(bundle, prefix, editor); fForward= forward; setHelpContextId(fForward ? IAbstractTextEditorHelpContextIds.GOTO_NEXT_ANNOTATION_ACTION : IAbstractTextEditorHelpContextIds.GOTO_PREVIOUS_ANNOTATION_ACTION); }