Class AbstractNavigateBookmarksHandler
java.lang.Object
org.eclipse.core.commands.common.EventManager
org.eclipse.core.commands.AbstractHandler
com.e1c.g5.v8.dt.internal.bookmarks.ui.commands.AbstractBookmarkHandler
com.e1c.g5.v8.dt.internal.bookmarks.ui.commands.AbstractNavigateBookmarksHandler
- All Implemented Interfaces:
org.eclipse.core.commands.IHandler,org.eclipse.core.commands.IHandler2
- Direct Known Subclasses:
GotoNextBookmarkHandler,GotoPreviousBookmarkHandler
Abstract base for handlers that navigate among bookmarks.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidexecuteWithTextEditor(org.eclipse.ui.texteditor.ITextEditor editor, org.eclipse.core.resources.IResource resource) Handles command in text editor.protected abstract Optional<org.eclipse.core.resources.IMarker>findTargetBookmark(int caretLine, NavigableMap<Integer, List<org.eclipse.core.resources.IMarker>> bookmarksWithLines) Selects bookmark to navigate to.Methods inherited from class com.e1c.g5.v8.dt.internal.bookmarks.ui.commands.AbstractBookmarkHandler
calculateMultilineBookmarkLine, calculateMultilineBookmarkOffset, execute, findBookmarksWithLines, findDocument, findMarkerModel, findTextSelectionMethods inherited from class org.eclipse.core.commands.AbstractHandler
addHandlerListener, dispose, fireHandlerChanged, hasListeners, isEnabled, isHandled, removeHandlerListener, setBaseEnabled, setEnabledMethods inherited from class org.eclipse.core.commands.common.EventManager
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
-
Constructor Details
-
AbstractNavigateBookmarksHandler
public AbstractNavigateBookmarksHandler()
-
-
Method Details
-
executeWithTextEditor
protected void executeWithTextEditor(org.eclipse.ui.texteditor.ITextEditor editor, org.eclipse.core.resources.IResource resource) Description copied from class:AbstractBookmarkHandlerHandles command in text editor.- Specified by:
executeWithTextEditorin classAbstractBookmarkHandler- Parameters:
editor- Text editor being active. Must not benull.resource- Resource being edited in active text editor. Must not benull.