public abstract class ExplorerManager extends PinnableManager
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
SELECT_IN_STRUCTURE_CMD
Select in Structure command.
|
static int |
SELECT_IN_STRUCTURE_CMD_ID
Select in Structure command ID.
|
UPDATE_FROM_ACTION_PERFORMED, UPDATE_FROM_ACTIVE_VIEW_CHANGED, UPDATE_FROM_UNDO, UPDATE_FROM_USER_EXTENSION, UPDATE_FROM_VIEW_SELECTION_CHANGED
Constructor and Description |
---|
ExplorerManager() |
Modifier and Type | Method and Description |
---|---|
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
Explorer of the given type when
exploring data of the given type. |
abstract Explorer |
getExplorerForHost(View host,
Context 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 java.util.List |
getExplorerTypes(Element document,
Context context)
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
ExplorerInfo to control inclusion of an associated
Explorer . |
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 . |
getDefaultView, handleEvent, showLastView, showView, update
createDockableView, createShowAction, createToggleToolbarAction, findOrCreateView, findView, getAcceleratorFile, getClonesIDs, getDefaultName, getDefaultViewId, getDockableFactory, getLastView, getNewView, getOrientation, getRelativeView, getShowAction, getToggleToolbarMenuWeight, getViewCategory, getViewId, getViews, initialize, isClone, isToolbarVisible, setToolbarVisible
public static final java.lang.String SELECT_IN_STRUCTURE_CMD
public static final int SELECT_IN_STRUCTURE_CMD_ID
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)
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.0public 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)
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.getDataregister(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 searchregister(java.lang.Class, java.lang.Class, java.lang.Class)
,
registerDynamic(oracle.ide.explorer.ExplorerInfo)
public abstract java.util.List getExplorerTypes(Element document, Context context)
document
- the Document whose getData is to be used for the searchcontext
- 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
Element
s in a tree structure.public void addStructureSupportForClass(MetaClass metaClass)
metaClass
- the MetaClass to addpublic void removeStructureSupportForClass(MetaClass metaClass)
metaClass
- the MetaClass to remove.