|
Eclipse Platform 2.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.eclipse.ui.NavigationLocation | +--org.eclipse.ui.texteditor.TextSelectionNavigationLocation
Represents the text selection context marked for the user in the navigation history.
Constructor Summary | |
TextSelectionNavigationLocation(ITextEditor part,
boolean initialize)
Creates a new text selection navigation location. |
Method Summary | |
void |
dispose()
May be extended by clients. |
boolean |
mergeInto(INavigationLocation location)
Merges the given location into this one. |
void |
partSaved(IEditorPart part)
Hook method which is called when the given editor has been saved. |
void |
releaseState()
Releases the state of this location. |
void |
restoreLocation()
Restores this location. |
void |
restoreState(IMemento memento)
Restores the object state from the given memento. |
void |
saveState(IMemento memento)
Stores the object state into the given memento. |
String |
toString()
|
void |
update()
Updates the this location. |
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 |
public TextSelectionNavigationLocation(ITextEditor part, boolean initialize)
part
- the text editor partinitialize
- a boolean indicating whether to initialize the new instance from the current selectionMethod Detail |
public String toString()
toString
in class Object
public void dispose()
NavigationLocation
dispose
in class NavigationLocation
org.eclipse.ui.NavigationLocation
INavigationLocation.dispose()
public void releaseState()
releaseState
in class NavigationLocation
org.eclipse.ui.NavigationLocation
INavigationLocation.releaseState()
public boolean mergeInto(INavigationLocation location)
location
- the location to merge into this onetrue if merging was successful
public void restoreLocation()
public void restoreState(IMemento memento)
memento
- the mementopublic void saveState(IMemento memento)
memento
- the mementopublic void partSaved(IEditorPart part)
part
- the editor partpublic void update()
|
Eclipse Platform 2.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |