|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.2.0) E17493-03 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.ide.view.MultiManager
public abstract class MultiManager
The MultiManager class is a base class for other managers that can support support either a singleton view or multiple views based on a configurable setting. It is assumed that the view(s) are extensions of AbstractPinnable.
Field Summary |
---|
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 | |
---|---|
MultiManager() |
Method Summary | |
---|---|
protected abstract DockableView |
createDockableView(Context ctx, ViewId viewId) |
protected abstract IdeAction |
createShowAction() |
protected IdeAction |
createToggleToolbarAction() Subclasses should override this method to return the IdeAction that is responsible for toggling the visibility of this manager's toolbar. |
protected DockableView |
findOrCreateView(Context context) |
protected DockableView |
findView(ViewId viewId) |
protected java.lang.String |
getAcceleratorFile() the name of the accelerator file to register |
protected abstract java.lang.String |
getDefaultName() Get the name of the default View instance managed by this manager as it would appear in a ViewId instance. |
protected DockableView |
getDefaultView(Context context) |
ViewId |
getDefaultViewId() |
protected abstract DockableFactory |
getDockableFactory() Deprecated. clients should return null and instead use a declarative "dockable-hook" trigger hook in their extension.xml. |
DockableView |
getLastView() Get the last managed View to have been active. |
DockableView |
getNewView(Context context, ViewId viewId) Get a new View instance rooted on the given Context and having the given ViewId. |
protected int |
getOrientation(ViewId viewId, DockableView relative) |
protected DockableView |
getRelativeView(Context context, ViewId viewId) |
IdeAction |
getShowAction() Get the IdeAction to be associated with a menu item used for raising the last managed View to the top of the z-order. |
protected float |
getToggleToolbarMenuWeight() |
protected abstract java.lang.String |
getViewCategory() Get the name of the View type managed by this manager as it would appear in a ViewId instance. |
protected ViewId |
getViewId(Context context) |
java.util.Collection |
getViews() |
boolean |
handleEvent(IdeAction action, Context context) This method is called when a user interaction with a View triggers the execution of a command. |
void |
initialize() Perform any necessary initialization. |
protected boolean |
isToolbarVisible() |
protected void |
setToolbarVisible(boolean visible) |
DockableView |
showLastView(Context context) Show the last managed View. |
DockableView |
showView(Context context) Show the View for the given Context, creating a new View instance as necessary. |
boolean |
update(IdeAction action, Context context) This method updates the enabled status of the specified action within the specified context. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MultiManager()
Method Detail |
---|
public void initialize()
initialize
in interface Addin
DockableFactory
public final IdeAction getShowAction()
IdeMainWindow
, showLastView(oracle.ide.Context)
public DockableView showLastView(Context context)
#getAction
public DockableView showView(Context context)
#getNewAction
public DockableView getLastView()
public DockableView getNewView(Context context, ViewId viewId)
showView(oracle.ide.Context)
, DockableFactory.install()
public java.util.Collection getViews()
public ViewId getDefaultViewId()
ViewId
associated with this manager.protected abstract java.lang.String getViewCategory()
ViewId
, getDefaultName()
protected abstract java.lang.String getDefaultName()
ViewId
, getViewCategory()
protected java.lang.String getAcceleratorFile()
KeyStrokeContextRegistry.addAcceleratorDefinitionFile(java.lang.ClassLoader, java.lang.String)
protected abstract DockableView createDockableView(Context ctx, ViewId viewId)
protected abstract IdeAction createShowAction()
@Deprecated
protected abstract DockableFactory getDockableFactory()
protected IdeAction createToggleToolbarAction()
protected float getToggleToolbarMenuWeight()
protected ViewId getViewId(Context context)
protected DockableView findView(ViewId viewId)
protected DockableView findOrCreateView(Context context)
protected DockableView getRelativeView(Context context, ViewId viewId)
protected int getOrientation(ViewId viewId, DockableView relative)
protected boolean isToolbarVisible()
protected void setToolbarVisible(boolean visible)
public boolean handleEvent(IdeAction action, Context context)
Controller
View
triggers the execution of a command.handleEvent
in interface Controller
action
- action whose command is to be executed.public boolean update(IdeAction action, Context context)
Controller
update
in interface Controller
action
- action whose command is to be executed.context
- the current contextprotected DockableView getDefaultView(Context context)
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.2.0) E17493-03 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |