Class GotoPreviousBookmarkHandler
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
com.e1c.g5.v8.dt.internal.bookmarks.ui.commands.GotoPreviousBookmarkHandler
- All Implemented Interfaces:
org.eclipse.core.commands.IHandler
,org.eclipse.core.commands.IHandler2
Navigates to bookmark above caret line.
If there is no bookmark above caret line, then navigates to the last bookmark in the document.
If there are multiple bookmarks on the line then one of those bookmarks is selected.
If no appropriate bookmark was found then editor is not changed.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected 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.AbstractNavigateBookmarksHandler
executeWithTextEditor
Methods inherited from class com.e1c.g5.v8.dt.internal.bookmarks.ui.commands.AbstractBookmarkHandler
calculateMultilineBookmarkLine, calculateMultilineBookmarkOffset, execute, findBookmarksWithLines, findDocument, findMarkerModel, findTextSelection
Methods inherited from class org.eclipse.core.commands.AbstractHandler
addHandlerListener, dispose, fireHandlerChanged, hasListeners, isEnabled, isHandled, removeHandlerListener, setBaseEnabled, setEnabled
Methods inherited from class org.eclipse.core.commands.common.EventManager
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
-
Constructor Details
-
GotoPreviousBookmarkHandler
public GotoPreviousBookmarkHandler()
-
-
Method Details