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
ConstructorsConstructorDescriptionCommonNavigatorManager(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 TypeMethodDescriptionvoiddispose()Called byCommonNavigatorwhen the View Part is disposed.protected voidfillContextMenu(IMenuManager aMenuManager) Fills aMenuManager with menu contributions from theNavigatorActionService.protected voidInitializes and registers the context menu.protected voidvoidrestoreState(IMemento aMemento) voidvoidselectionChanged(SelectionChangedEvent anEvent) Notifies that the selection has changed.protected voidupdateStatusBar(ISelection aSelection)
-
Constructor Details
-
Method Details
-
dispose
public void dispose()Called by
CommonNavigatorwhen the View Part is disposed. -
selectionChanged
Description copied from interface:ISelectionChangedListenerNotifies that the selection has changed.- Specified by:
selectionChangedin 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
-