Package org.eclipse.ui
Class NavigationLocation
java.lang.Object
org.eclipse.ui.NavigationLocation
- All Implemented Interfaces:
INavigationLocation
- Direct Known Subclasses:
TextSelectionNavigationLocation
Default implementation of INavigationLocation.
- Since:
- 2.1
-
Constructor Summary
ModifierConstructorDescriptionprotected
NavigationLocation
(IEditorPart editorPart) Constructs a NavigationLocation with its editor part. -
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
May be extended by clients.protected IEditorPart
Returns the part that the receiver holds the location for.getId()
Returns the id used for this location.getInput()
Returns the input used for this location.getText()
Returns the display name for this location.void
May be extended by clients.void
Sets the location's id.void
Sets the location's input.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.eclipse.ui.INavigationLocation
mergeInto, restoreLocation, restoreState, saveState, update
-
Constructor Details
-
NavigationLocation
Constructs a NavigationLocation with its editor part.- Parameters:
editorPart
- the part
-
-
Method Details
-
getEditorPart
Returns the part that the receiver holds the location for.- Returns:
- IEditorPart
-
getInput
Description copied from interface:INavigationLocation
Returns the input used for this location. Returnsnull
if the receiver's state has been released.- Specified by:
getInput
in interfaceINavigationLocation
- Returns:
- the input for this location
-
getId
Description copied from interface:INavigationLocation
Returns the id used for this location.- Specified by:
getId
in interfaceINavigationLocation
- Returns:
- the id for this location
-
getText
Description copied from interface:INavigationLocation
Returns the display name for this location. This name is used in the navigation history list.- Specified by:
getText
in interfaceINavigationLocation
- Returns:
- the display name
-
setInput
Description copied from interface:INavigationLocation
Sets the location's input.Should not be called by clients.
- Specified by:
setInput
in interfaceINavigationLocation
- Parameters:
input
- the editor input.
-
setId
Description copied from interface:INavigationLocation
Sets the location's id.Should not be called by clients.
- Specified by:
setId
in interfaceINavigationLocation
- Parameters:
id
- the editor id.
-
dispose
public void dispose()May be extended by clients.- Specified by:
dispose
in interfaceINavigationLocation
- See Also:
-
releaseState
public void releaseState()May be extended by clients.- Specified by:
releaseState
in interfaceINavigationLocation
- See Also:
-