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
ConstructorDescriptionCreates a new NavigationHistory to keep the NavigationLocation entries of the specified page. -
Method Summary
Modifier and TypeMethodDescriptioncreateEntry
(IWorkbenchPage page, IEditorPart part, INavigationLocation location) void
dispose()
Disposes this NavigationHistory and all entries.void
Returns the current location.Returns all entries in the history.void
markEditor
(IEditorPart part) void
markLocation
(IEditorPart part) Mark the current location into the history.boolean
updateActive
(IEditorPart editor) void
updateCookieForTab
(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:INavigationHistory
Mark 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:
markLocation
in interfaceINavigationHistory
- Parameters:
part
- the editor part
-
getLocations
Description copied from interface:INavigationHistory
Returns all entries in the history.- Specified by:
getLocations
in interfaceINavigationHistory
- Returns:
- all entries in the history
-
getCurrentLocation
Description copied from interface:INavigationHistory
Returns the current location.- Specified by:
getCurrentLocation
in interfaceINavigationHistory
- Returns:
- the current location
-
dispose
public void dispose()Disposes this NavigationHistory and all entries. -
updateCookieForTab
-
updateActive
-