Extension SDK 10.1.2

oracle.ide.navigator
Class NavigatorManager

java.lang.Object
  extended byoracle.ide.MultiManager
      extended byoracle.ide.navigator.NavigatorManager
All Implemented Interfaces:
Controller, Module

public abstract class NavigatorManager
extends MultiManager

The NavigatorManager is responsible for managing the creation of the system navigator and transient navigators opened on selected nodes.


Constructor Summary
NavigatorManager()
           
 
Method Summary
abstract  void addContextMenuListener(ContextMenuListener l, java.lang.Class cls)
          Adds a context menu listener to all NavigatorWindows.
static NavigatorManager getApplicationNavigatorManager()
          Returns the NavigatorManager instance that represents the Application Navigator or null if no such navigator exists.
static NavigatorManager getConnectionNavigatorManager()
          Returns the NavigatorManager instance that represents the Connection Navigator or null if no such navigator exists.
abstract  ContextMenu getContextMenu()
          Get the ContextMenu to be shared by all Editors.
abstract  HelpInfo getHelpInfo()
          Get the help topic id for the navigator managed by me.
abstract  NavigatorWindow getNavigatorWindow()
          Returns the NavigatorWindow.
abstract  IconOverlayCache getOverlayCache()
          Deprecated.  
static NavigatorManager getWorkspaceNavigatorManager()
          Returns the NavigatorManager instance that represents the Workspace Navigator or null if no such navigator exists.
abstract  boolean isSystemNavigator(ViewId viewId)
          Returns true if the view identified by the give viewId is the system navigator.
abstract  NavigatorWindow openNavigator(Context context)
          Open a navigator based on the specified context.
abstract  void registerExtension(Extension ext, java.lang.Class cls)
          Register a navigator extension.
abstract  void registerFilter(java.lang.Class elementClass, java.lang.Class childFilterClass, URLFilter urlFilter)
          Associates a childFilterClass filter and urlFilter with the specified elementClass.
abstract  void removeContextMenuListener(ContextMenuListener l)
          Remove the specified ContextMenuListener.
static void setApplicationNavigatorManager(NavigatorManager navMgr)
          Publishes the specified NavigatorManager as implementing the Application Navigator.
static void setConnectionNavigatorManager(NavigatorManager navMgr)
          Publishes the specified NavigatorManager as implementing the Connection Navigator.
static void setWorkspaceNavigatorManager(NavigatorManager navMgr)
          Publishes the specified NavigatorManager as implementing the Workspace Navigator.
abstract  NavigatorWindow showNavigator(Context context)
          Convenience method programatically identical to casting the result of showView(context) to a NavigatorWindow.
 
Methods inherited from class oracle.ide.MultiManager
createDockableView, createShowAction, createToggleToolbarAction, findOrCreateView, findView, getDefaultName, getDefaultViewId, getDockableFactory, getLastView, getNewView, getOrientation, getRelativeView, getShowAction, getToggleToolbarMenuWeight, getViewCategory, getViewId, getViews, handleEvent, initialize, isToolbarVisible, setToolbarVisible, showLastView, showView, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NavigatorManager

public NavigatorManager()
Method Detail

getApplicationNavigatorManager

public static NavigatorManager getApplicationNavigatorManager()
Returns the NavigatorManager instance that represents the Application Navigator or null if no such navigator exists.


setApplicationNavigatorManager

public static void setApplicationNavigatorManager(NavigatorManager navMgr)
Publishes the specified NavigatorManager as implementing the Application Navigator.


getWorkspaceNavigatorManager

public static NavigatorManager getWorkspaceNavigatorManager()
Returns the NavigatorManager instance that represents the Workspace Navigator or null if no such navigator exists.


setWorkspaceNavigatorManager

public static void setWorkspaceNavigatorManager(NavigatorManager navMgr)
Publishes the specified NavigatorManager as implementing the Workspace Navigator.


getConnectionNavigatorManager

public static NavigatorManager getConnectionNavigatorManager()
Returns the NavigatorManager instance that represents the Connection Navigator or null if no such navigator exists.


setConnectionNavigatorManager

public static void setConnectionNavigatorManager(NavigatorManager navMgr)
Publishes the specified NavigatorManager as implementing the Connection Navigator.


getContextMenu

public abstract ContextMenu getContextMenu()
Get the ContextMenu to be shared by all Editors.


isSystemNavigator

public abstract boolean isSystemNavigator(ViewId viewId)
Returns true if the view identified by the give viewId is the system navigator.


getNavigatorWindow

public abstract NavigatorWindow getNavigatorWindow()
Returns the NavigatorWindow.


openNavigator

public abstract NavigatorWindow openNavigator(Context context)
Open a navigator based on the specified context. If an existing navigator based on the context exist it shows it. If the system navigator contains the context selected element, it shows the system navigator, and expands the corresponding node. Otherwise, it opens a new navigator.


showNavigator

public abstract NavigatorWindow showNavigator(Context context)
Convenience method programatically identical to casting the result of showView(context) to a NavigatorWindow.


addContextMenuListener

public abstract void addContextMenuListener(ContextMenuListener l,
                                            java.lang.Class cls)
Adds a context menu listener to all NavigatorWindows. The listener will be called when users pop-up the menu on nodes of type cls. Specifying null for the cls parameter will cause the listener to be called when a menu is pop-up on any node type.


removeContextMenuListener

public abstract void removeContextMenuListener(ContextMenuListener l)
Remove the specified ContextMenuListener.


registerFilter

public abstract void registerFilter(java.lang.Class elementClass,
                                    java.lang.Class childFilterClass,
                                    URLFilter urlFilter)
Associates a childFilterClass filter and urlFilter with the specified elementClass.


registerExtension

public abstract void registerExtension(Extension ext,
                                       java.lang.Class cls)
Register a navigator extension. Extensions are called when the navigator builds the context. Extensions get a chance to update the context before it is returned to the client requesting the context.

Parameters:
ext - the extension to register.
cls - the Element class for which the specified extension will be called.

getHelpInfo

public abstract HelpInfo getHelpInfo()
Get the help topic id for the navigator managed by me.


getOverlayCache

public abstract IconOverlayCache getOverlayCache()
Deprecated.  

Get the icon overlay cache shared by all NavigatorWindows.


Extension SDK

 

Copyright © 1997, 2004, Oracle. All rights reserved.