public class TextSelectionNavigationLocation extends NavigationLocation
| Constructor and Description |
|---|
TextSelectionNavigationLocation(ITextEditor part,
boolean initialize)
Creates a new text selection navigation location.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
getEditorPart, getInput, getText, setInputpublic TextSelectionNavigationLocation(ITextEditor part, boolean initialize)
part - the text editor partinitialize - a boolean indicating whether to initialize the new instance from the current selectionpublic void dispose()
NavigationLocationdispose in interface INavigationLocationdispose in class NavigationLocationINavigationLocation.dispose()public void releaseState()
releaseState in interface INavigationLocationreleaseState in class NavigationLocationINavigationLocation.releaseState()public boolean mergeInto(INavigationLocation location)
location - the location to merge into this onetrue if merging was successfulpublic 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()
Guidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.