Package org.eclipse.ui.internal
Class NavigationHistory
java.lang.Object
org.eclipse.ui.internal.NavigationHistory
- All Implemented Interfaces:
INavigationHistory
Implementation of the back and forward actions.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new NavigationHistory to keep the NavigationLocation entries of the specified page. -
Method Summary
Modifier and TypeMethodDescriptioncreateEntry(IWorkbenchPage page, IEditorPart part, INavigationLocation location) voiddispose()Disposes this NavigationHistory and all entries.voidReturns the current location.Returns all entries in the history.voidmarkEditor(IEditorPart part) voidmarkLocation(IEditorPart part) Mark the current location into the history.booleanupdateActive(IEditorPart editor) voidupdateCookieForTab(Object oldCookie, Object newCookie)
-
Constructor Details
-
NavigationHistory
Creates a new NavigationHistory to keep the NavigationLocation entries of the specified page.- Parameters:
page- the workbench page
-
-
Method Details
-
markEditor
-
markLocation
Description copied from interface:INavigationHistoryMark the current location into the history. This message should be sent by clients whenever significant changes in location are detected. The location is obtained by callingINavigationLocationProvider.createNavigationLocation- Specified by:
markLocationin interfaceINavigationHistory- Parameters:
part- the editor part
-
getLocations
Description copied from interface:INavigationHistoryReturns all entries in the history.- Specified by:
getLocationsin interfaceINavigationHistory- Returns:
- all entries in the history
-
getCurrentLocation
Description copied from interface:INavigationHistoryReturns the current location.- Specified by:
getCurrentLocationin interfaceINavigationHistory- Returns:
- the current location
-
dispose
public void dispose()Disposes this NavigationHistory and all entries. -
updateCookieForTab
-
updateActive
-