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 TypeMethodDescriptionvoidaddNewLocation(Navigatable navigatable) Adds the current location memento to the list of previous locations for the given navigatable.voidclear(Navigatable navigatable) Removes all visited locations from the history list for the given navigatablevoidRemoves all entries for the given program from all history listsgetNextLocations(Navigatable navigatable) Returns theLocationMementoobjects in the "next" listgetPreviousLocations(Navigatable navigatable) Returns theLocationMementoobjects in the "previous" listbooleanhasNext(Navigatable navigatable) Returns true if there is a valid "next" location in the history list.booleanhasNextFunction(Navigatable navigatable) Returns true if there is a valid "next" function location in the history listbooleanhasPrevious(Navigatable navigatable) Returns true if there is a valid "previous" location in the history listbooleanhasPreviousFunction(Navigatable navigatable) Returns true if there is a valid "previous" function location in the history listvoidnext(Navigatable navigatable) Positions the current location to the next location in the history list.voidnext(Navigatable navigatable, LocationMemento location) Navigates to the given location in the "next" list.voidnextFunction(Navigatable navigatable) Positions the "current" location to the next location which is in a different function from current one or previous non-code location.voidprevious(Navigatable navigatable) Positions the "current" location to the previous location in the history list.voidprevious(Navigatable navigatable, LocationMemento location) Navigates to the given location in the "previous" list.voidpreviousFunction(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