Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse Platform
Release 3.5

org.eclipse.ui.navigator
Class CommonNavigatorManager

java.lang.Object
  extended by 
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.

Constructor Summary
CommonNavigatorManager ( 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
 void dispose ()
           Called by CommonNavigator when the View Part is disposed.
protected  void fillContextMenu ( IMenuManager aMenuManager)
           Fills aMenuManager with menu contributions from the NavigatorActionService.
  NavigatorActionService getNavigatorActionService ()
           
protected  void initContextMenu ()
           Initializes and registers the context menu.
protected  void initViewMenu ()
           
 void restoreState ( IMemento aMemento)
           
 void saveState ( IMemento aMemento)
           
 void selectionChanged ( SelectionChangedEvent anEvent)
          Notifies that the selection has changed.
protected  void updateStatusBar ( ISelection aSelection)
           
 
Methods inherited from class java.lang. Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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
Method Detail

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

Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire