Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse Platform
Release 3.5

org.eclipse.ui
Interface INavigationHistory


public interface INavigationHistory

Manages a list of entries to keep a history of locations on editors, enabling the user to go back and forward without losing context. The history is a list of INavigationLocation and a pointer to the current location. Whenever the back or forward action runs the history restores the previous or next location. The back and/or forward actions should not change the content of the history in any way. If the user steps N times in one direction (back or forward) and then N times to the oposite direction, the editor and location should be exactly the same as before. Clients must guarantee that the current location is always in the history, which can be done either by marking a new location or by updating the current location. Not intended to be implemented by clients.

Since:
2.1
Restriction:
This interface is not intended to be implemented by clients.

Method Summary
  INavigationLocation getCurrentLocation ()
          Returns the current location.
  INavigationLocation[] getLocations ()
          Returns all entries in the history.
 void markLocation ( IEditorPart part)
          Mark the current location into the history.
 

Method Detail

markLocation

void markLocation(
IEditorPart part)
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 calling INavigationLocationProvider.createNavigationLocation

Parameters:
part - the editor part

getCurrentLocation


INavigationLocation getCurrentLocation()
Returns the current location.

Returns:
the current location

getLocations


INavigationLocation[] getLocations()
Returns all entries in the history.

Returns:
all entries in the history

Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire