Package ghidra.app.services
Interface NavigationHistoryService
public interface NavigationHistoryService
The NavigationHistoryService maintains a stack of locations that the user has visited via a
navigation plugin. It provides methods querying and manipulating this list.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addNewLocation
(Navigatable navigatable) Adds the current location memento to the list of previous locations for the given navigatable.void
clear
(Navigatable navigatable) Removes all visited locations from the history list for the given navigatablevoid
Removes all entries for the given program from all history listsgetNextLocations
(Navigatable navigatable) Returns theLocationMemento
objects in the "next" listgetPreviousLocations
(Navigatable navigatable) Returns theLocationMemento
objects in the "previous" listboolean
hasNext
(Navigatable navigatable) Returns true if there is a valid "next" location in the history list.boolean
hasNextFunction
(Navigatable navigatable) Returns true if there is a valid "next" function location in the history listboolean
hasPrevious
(Navigatable navigatable) Returns true if there is a valid "previous" location in the history listboolean
hasPreviousFunction
(Navigatable navigatable) Returns true if there is a valid "previous" function location in the history listvoid
next
(Navigatable navigatable) Positions the current location to the next location in the history list.void
next
(Navigatable navigatable, LocationMemento location) Navigates to the given location in the "next" list.void
nextFunction
(Navigatable navigatable) Positions the "current" location to the next location which is in a different function from current one or previous non-code location.void
previous
(Navigatable navigatable) Positions the "current" location to the previous location in the history list.void
previous
(Navigatable navigatable, LocationMemento location) Navigates to the given location in the "previous" list.void
previousFunction
(Navigatable navigatable) Positions the "previous" location to the next location which is in a different function from current one or previous non-code location.
-
Method Details
-
clear
Removes all entries for the given program from all history lists- Parameters:
program
- the program whose entries to be cleared