Eclipse Platform
2.1

org.eclipse.ui.texteditor
Class TextSelectionNavigationLocation

java.lang.Object
  |
  +--org.eclipse.ui.NavigationLocation
        |
        +--org.eclipse.ui.texteditor.TextSelectionNavigationLocation
All Implemented Interfaces:
INavigationLocation

public class TextSelectionNavigationLocation
extends NavigationLocation

2.1 - WORK_IN_PROGRESS do not use.


Constructor Summary
TextSelectionNavigationLocation(ITextEditor part, boolean initialize)
           
 
Method Summary
 void dispose()
          May be extended by clients.
 boolean mergeInto(INavigationLocation location)
          Merge the receiver into currentLocation.
 void partSaved(IEditorPart part)
           
 void releaseState()
          May be extended by clients.
 void restoreLocation()
          Restore the context saved by this location.
 void restoreState(IMemento memento)
          Restore the state of this location from the memento
 void saveState(IMemento memento)
          Persists the state of this location into the memento * @param memento the storage were the state should be saved into.
 String toString()
           
 void update()
          The message update is sent to the active location before another location becomes active.
 
Methods inherited from class org.eclipse.ui.NavigationLocation
getEditorPart, getInput, getText, setInput
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TextSelectionNavigationLocation

public TextSelectionNavigationLocation(ITextEditor part,
                                       boolean initialize)
Method Detail

toString

public String toString()
Overrides:
toString in class Object

dispose

public void dispose()
Description copied from class: NavigationLocation
May be extended by clients.

Specified by:
dispose in interface INavigationLocation
Overrides:
dispose in class NavigationLocation
See Also:
INavigationLocation.dispose()

releaseState

public void releaseState()
Description copied from class: NavigationLocation
May be extended by clients. * @see org.eclipse.ui.INavigationLocation#releaseState()

Specified by:
releaseState in interface INavigationLocation
Overrides:
releaseState in class NavigationLocation

mergeInto

public boolean mergeInto(INavigationLocation location)
Description copied from interface: INavigationLocation
Merge the receiver into currentLocation. Return true if the two locations could be merged otherwise return false.

This message is sent to all locations before being added to the history; given the change to the new location to merge itself into the current location minimizing the number of entries in the navigation history.

* @param currentLocation where the receiver should be merged into * @return boolean true if the merge was possible


restoreLocation

public void restoreLocation()
Description copied from interface: INavigationLocation
Restore the context saved by this location.


restoreState

public void restoreState(IMemento memento)
Description copied from interface: INavigationLocation
Restore the state of this location from the memento

Parameters:
memento - the storage were the state was saved into.

saveState

public void saveState(IMemento memento)
Description copied from interface: INavigationLocation
Persists the state of this location into the memento * @param memento the storage were the state should be saved into.


partSaved

public void partSaved(IEditorPart part)

update

public void update()
Description copied from interface: INavigationLocation
The message update is sent to the active location before another location becomes active.


Eclipse Platform
2.1

Copyright (c) IBM Corp. and others 2000, 2003. All Rights Reserved.