| 
 | Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.4.0) E17493-05 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectoracle.ide.view.MultiManager
oracle.ide.view.PinnableManager
oracle.ide.explorer.ExplorerManager
public abstract class ExplorerManager
The ExplorerManager interface acts as a registry for Explorer types registered against a given Document type specific to a given View type. For example; Explorer type X.class applying to Document type D.class specific to View type V.class. The ExplorerManager preserves a reference to each of the Explorers that it has created as a result of calls to its getExplorerForHost method. Subsequent calls to this method, which pass the same host instance and a Context which refers to the same View instance, will result in receiving the same Explorer instance as the first call for that combination of host and View.
| Field Summary | |
|---|---|
| static java.lang.String | SELECT_IN_STRUCTURE_CMDSelect in Structure command. | 
| static int | SELECT_IN_STRUCTURE_CMD_IDSelect in Structure command ID. | 
| Fields inherited from interface oracle.ide.controller.Controller | 
|---|
| UPDATE_FROM_ACTION_PERFORMED, UPDATE_FROM_ACTIVE_VIEW_CHANGED, UPDATE_FROM_UNDO, UPDATE_FROM_USER_EXTENSION, UPDATE_FROM_VIEW_SELECTION_CHANGED | 
| Constructor Summary | |
|---|---|
| ExplorerManager() | |
| Method Summary | |
|---|---|
|  void | addStructureSupportForClass(MetaClass metaClass)Adds a MetaClass for a class that supports structure views | 
| abstract  TreeExplorer | createTreeExplorer(Folder folder)Creates a TreeExplorer. | 
| abstract  ContextMenu | getContextMenu()Get the ContextMenu to be shared by all explorer windows. | 
| abstract  java.lang.String | getExplorerCaption(java.lang.Class explorerType,
                   java.lang.Class dataType)Gets the caption to display for an Explorerof the given type when
 exploring data of the given type. | 
| abstract  Explorer | getExplorerForHost(View host,
                   Context context)Gets the Explorerassociated with the specifiedhostfor the givencontext. | 
| abstract  javax.swing.Icon | getExplorerIcon(java.lang.Class explorerType,
                java.lang.Class dataType)Gets the Icon to display for an Explorerof the given type when 
 exploring data of the given type. | 
| static ExplorerManager | getExplorerManager()Returns the ExplorerManager instance that is active in the IDE. | 
| abstract  java.util.List | getExplorerTypes(java.lang.Class dataType)Get a list of Explorer types statically registered for a given data type as returned from Document.getData. | 
| abstract  java.util.List | getExplorerTypes(Element document)Get a list of Explorer types, both statically and dynamically registered, for a given Document instance. | 
| abstract  void | register(java.lang.Class dataType,
         java.lang.Class explorerType,
         java.lang.Class viewType)Register an Explorer type to be associated with Documents having a given data type. | 
| abstract  void | register(java.lang.Class dataType,
         java.lang.Class explorerType,
         java.lang.Class viewType,
         java.lang.String caption,
         ArrayResourceBundle bundle,
         int key)Deprecated. use register(Class,Class,Class,String,Icon). Since 11.0 | 
| abstract  void | register(java.lang.Class dataType,
         java.lang.Class explorerType,
         java.lang.Class viewType,
         java.lang.String caption,
         javax.swing.Icon icon)Register an Explorer type to be associated with Documents having a given data type. | 
| abstract  void | register(java.lang.Class dataType,
         java.lang.Class explorerType,
         java.lang.Class viewType,
         java.lang.String caption,
         java.util.ResourceBundle bundle,
         java.lang.String key)Register an Explorer type to be associated with Documents having a given data type. | 
| abstract  void | registerDynamic(ExplorerInfo info)Registers an ExplorerInfoto control inclusion of an associatedExplorer. | 
|  void | removeStructureSupportForClass(MetaClass metaClass)Removes a MetaClass that was added previously. | 
| static void | setExplorerManager(ExplorerManager explorerManager)Publishes the specified ExplorerManager as the active instance in the IDE. | 
| abstract  boolean | supportsStructure(View view)Returns true if the argument View supports exploring of its data. | 
| abstract  void | unregister(ExplorerInfo info)Unregister an ExplorerInfo. | 
| Methods inherited from class oracle.ide.view.PinnableManager | 
|---|
| getDefaultView, handleEvent, showLastView, showView, update | 
| Methods inherited from class oracle.ide.view.MultiManager | 
|---|
| createDockableView, createShowAction, createToggleToolbarAction, findOrCreateView, findView, getAcceleratorFile, getDefaultName, getDefaultViewId, getDockableFactory, getLastView, getNewView, getOrientation, getRelativeView, getShowAction, getToggleToolbarMenuWeight, getViewCategory, getViewId, getViews, initialize, isToolbarVisible, setToolbarVisible | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
public static final java.lang.String SELECT_IN_STRUCTURE_CMD
public static final int SELECT_IN_STRUCTURE_CMD_ID
| Constructor Detail | 
|---|
public ExplorerManager()
| Method Detail | 
|---|
public static ExplorerManager getExplorerManager()
public static void setExplorerManager(ExplorerManager explorerManager)
public abstract boolean supportsStructure(View view)
view - 
public abstract ContextMenu getContextMenu()
public abstract void register(java.lang.Class dataType,
                              java.lang.Class explorerType,
                              java.lang.Class viewType)
register(Class, Class, Class, String, Icon)
public abstract void register(java.lang.Class dataType,
                              java.lang.Class explorerType,
                              java.lang.Class viewType,
                              java.lang.String caption,
                              ArrayResourceBundle bundle,
                              int key)
register(Class,Class,Class,String,Icon). Since 11.0
register(Class, Class, Class, String, Icon)
public abstract void register(java.lang.Class dataType,
                              java.lang.Class explorerType,
                              java.lang.Class viewType,
                              java.lang.String caption,
                              java.util.ResourceBundle bundle,
                              java.lang.String key)
register(Class, Class, Class, String, Icon)
public abstract void register(java.lang.Class dataType,
                              java.lang.Class explorerType,
                              java.lang.Class viewType,
                              java.lang.String caption,
                              javax.swing.Icon icon)
explorerType will be
 displayed in the ExplorerWindow when views of class
 viewType become active on a context whose Document's data
 (as returned by Document.getData()) is of type dataType. If a
 null is supplied for viewtype, then the
 registration will apply to all views.  If multiple data types all extend a
 common class, only the Class object for that common class need be
 registered as retrievals will be attempted all the way up a given data
 type's inheritance path until a match can be found or the search fails.
 Registrations during performance sensitive points, like during startup,
 should register using one of the versions taking a ResourceBundle and key
 for delayed loading of the Icon.
dataType - Class of result returned from Document.getDataexplorerType - Class of Explorer to associate with the given data typeviewType - Class of View to which the association appliescaption - Name to use when representing the explorericon - Icon to use when representing the explorergetExplorerForHost(View, Context), 
getExplorerTypes(java.lang.Class), 
getExplorerCaption(java.lang.Class, java.lang.Class), 
getExplorerIcon(java.lang.Class, java.lang.Class)public abstract void registerDynamic(ExplorerInfo info)
ExplorerInfo to control inclusion of an associated
 Explorer.  Upon opening of each ExplorerWindow,
 ExplorerInfo.getExplorerWeight(oracle.ide.model.Element) will be called to determine if, and
 in what order, an identifier for the represented Explorer should
 be included in the list of available Explorer for a given object.
 The weight returned would typically coincide with that returned by any
 related EditorAddin
info - the ExplorerInfo to registerunregister(oracle.ide.explorer.ExplorerInfo), 
EditorAddin.getEditorWeight(oracle.ide.model.Element), 
EditorManager.registerDynamic(oracle.ide.editor.EditorAddin)public abstract void unregister(ExplorerInfo info)
ExplorerInfo.
info - the ExplorerInfo to unregisterregisterDynamic(oracle.ide.explorer.ExplorerInfo)public abstract java.util.List getExplorerTypes(java.lang.Class dataType)
dataType - Class of result returned from Document.getData
register(java.lang.Class, java.lang.Class, java.lang.Class)public abstract java.util.List getExplorerTypes(Element document)
document - the Document whose getData is to be used for the search
register(java.lang.Class, java.lang.Class, java.lang.Class), 
registerDynamic(oracle.ide.explorer.ExplorerInfo)
public abstract javax.swing.Icon getExplorerIcon(java.lang.Class explorerType,
                                                 java.lang.Class dataType)
Explorer of the given type when 
 exploring data of the given type.
explorerType - Explorer type for which an Icon is desireddataType - data type being explored at the time the Icon is desired.
public abstract java.lang.String getExplorerCaption(java.lang.Class explorerType,
                                                    java.lang.Class dataType)
Explorer of the given type when
 exploring data of the given type.
explorerType - Explorer type for which a caption is desireddataType - data type being explored at the time the caption is
        desired.
public abstract Explorer getExplorerForHost(View host,
                                            Context context)
Explorer associated with the specified host
 for the given context.  The result of Context.getView is used
 to determine which type of Explorer to return unless a Class value is
 provided from ExplorerContext.getExplorerType(..) to indicate which
 Explorer type to fetch.
public abstract TreeExplorer createTreeExplorer(Folder folder)
TreeExplorer. Tree explorers can be used to display
 Elements in a tree structure.
public void addStructureSupportForClass(MetaClass metaClass)
metaClass - the MetaClass to addpublic void removeStructureSupportForClass(MetaClass metaClass)
metaClass - the MetaClass to remove.| 
 | Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.4.0) E17493-05 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||