|
Extension SDK 10.1.2 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.ide.MultiManager oracle.ide.PinnableManager oracle.ide.explorer.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_CMD
Select in Structure command. |
static int |
SELECT_IN_STRUCTURE_CMD_ID
Select in Structure command ID. |
Constructor Summary | |
ExplorerManager()
|
Method Summary | |
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 Explorer of the given type when
exploring data of the given type. |
abstract Explorer |
getExplorerForHost(View host,
Context context)
Gets the Explorer associated with the specified host
for the given context . |
abstract javax.swing.Icon |
getExplorerIcon(java.lang.Class explorerType,
java.lang.Class dataType)
Gets the Icon to display for an Explorer of 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)
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,
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 ExplorerInfo to control inclusion of an associated
Explorer . |
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 specified view supports
exploring of its data. |
abstract void |
unregister(ExplorerInfo info)
Unregister an ExplorerInfo . |
Methods inherited from class oracle.ide.PinnableManager |
handleEvent, showLastView, showView, update |
Methods inherited from class oracle.ide.MultiManager |
createDockableView, createShowAction, createToggleToolbarAction, findOrCreateView, findView, 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)
true
if the specified view
supports
exploring of its data.
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)
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)
,
#getExplorerForHost(View, Context, Class)
,
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 FlatEditorAddin
info
- the ExplorerInfo
to registerunregister(oracle.ide.explorer.ExplorerInfo)
,
FlatEditorAddin.getEditorWeight(oracle.ide.model.Element)
,
EditorManager.registerDynamic(oracle.ide.editor.FlatEditorAddin)
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)
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.
dataType
- 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.
dataType
- 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 Context.getExtraData to indicate which Explorer type to
fetch.
public abstract TreeExplorer createTreeExplorer(Folder folder)
TreeExplorer
. Tree explorers can be used to display
Element
s in a tree structure.
|
Extension SDK | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1997, 2004, Oracle. All rights reserved.