Package org.eclipse.ui.navigator
Class CommonNavigatorManager
java.lang.Object
org.eclipse.ui.navigator.CommonNavigatorManager
- All Implemented Interfaces:
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.
-
Constructor Summary
ConstructorDescriptionCommonNavigatorManager
(CommonNavigator aNavigator) Adds listeners to aNavigator to listen for selection changes and respond to mouse events.CommonNavigatorManager
(CommonNavigator aNavigator, IMemento aMemento) Adds listeners to aNavigator to listen for selection changes and respond to mouse events. -
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
Called byCommonNavigator
when the View Part is disposed.protected void
fillContextMenu
(IMenuManager aMenuManager) Fills aMenuManager with menu contributions from theNavigatorActionService
.protected void
Initializes and registers the context menu.protected void
void
restoreState
(IMemento aMemento) void
void
selectionChanged
(SelectionChangedEvent anEvent) Notifies that the selection has changed.protected void
updateStatusBar
(ISelection aSelection)
-
Constructor Details
-
Method Details
-
dispose
public void dispose()Called by
CommonNavigator
when the View Part is disposed. -
selectionChanged
Description copied from interface:ISelectionChangedListener
Notifies that the selection has changed.- Specified by:
selectionChanged
in interfaceISelectionChangedListener
- Parameters:
anEvent
- An event indicating the current selection of theCommonViewer
- See Also:
-
restoreState
- Parameters:
aMemento
- Used to restore state of action extensions via theNavigatorActionService
.
-
saveState
- Parameters:
aMemento
- Used to save state of action extensions via theNavigatorActionService
.
-
fillContextMenu
Fills aMenuManager with menu contributions from the
NavigatorActionService
.- Parameters:
aMenuManager
- A popup menu- See Also:
-
initContextMenu
protected void initContextMenu()Initializes and registers the context menu.
-
initViewMenu
protected void initViewMenu() -
updateStatusBar
- Parameters:
aSelection
- The current selection from theCommonViewer
-