org.eclipse.ui.navigator
Class CommonNavigatorManager
java.lang.Object
org.eclipse.ui.navigator.CommonNavigatorManager
-
All Implemented Interfaces:
-
ISelectionChangedListener
-
public final class CommonNavigatorManager
- extends
Object
- implements
ISelectionChangedListener
Manages the non-viewer responsibilities of the Common Navigator View Part,
including the display and population of the context menu and the registration
of extensions for opening content.
-
Since:
- 3.4
-
Restriction:
- This class is not intended to be instantiated by clients.
Methods inherited from class java.lang.
Object
|
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait
|
CommonNavigatorManager
public CommonNavigatorManager(
CommonNavigator aNavigator)
-
Adds listeners to aNavigator to listen for selection changes and respond
to mouse events.
-
Parameters:
-
aNavigator
- The CommonNavigator managed by this class. Requires a non-null
value.
CommonNavigatorManager
public CommonNavigatorManager(
CommonNavigator aNavigator,
IMemento aMemento)
-
Adds listeners to aNavigator to listen for selection changes and respond
to mouse events.
-
Parameters:
-
aNavigator
- The CommonNavigator managed by this class. Requires a non-null
value. -
aMemento
- a memento for restoring state, or null
dispose
public void dispose()
-
Called by
CommonNavigator
when the View Part is disposed.
-
-
selectionChanged
public void selectionChanged(
SelectionChangedEvent anEvent)
-
Description copied from interface:
ISelectionChangedListener
- Notifies that the selection has changed.
-
-
Specified by:
-
selectionChanged
in interface
ISelectionChangedListener
-
-
Parameters:
-
anEvent
- An event indicating the current selection of the
CommonViewer
-
See Also:
-
ISelectionChangedListener.selectionChanged(org.eclipse.jface.viewers.SelectionChangedEvent)
restoreState
public void restoreState(
IMemento aMemento)
-
-
-
Parameters:
-
aMemento
- Used to restore state of action extensions via the
NavigatorActionService
.
saveState
public void saveState(
IMemento aMemento)
-
-
-
Parameters:
-
aMemento
- Used to save state of action extensions via the
NavigatorActionService
.
fillContextMenu
protected void fillContextMenu(
IMenuManager aMenuManager)
-
Fills aMenuManager with menu contributions from the
NavigatorActionService
.
-
-
-
Parameters:
-
aMenuManager
- A popup menu -
See Also:
-
NavigatorActionService.fillContextMenu(IMenuManager)
initContextMenu
protected void initContextMenu()
-
Initializes and registers the context menu.
-
-
initViewMenu
protected void initViewMenu()
-
-
updateStatusBar
protected void updateStatusBar(
ISelection aSelection)
-
-
-
Parameters:
-
aSelection
- The current selection from the
CommonViewer
getNavigatorActionService
public
NavigatorActionService getNavigatorActionService()
-
-
-
Returns:
- The action service used by this manager
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.