oracle.jdevimpl.uieditor
Class AbstractCanvasController
java.lang.Object
oracle.ide.addin.BaseController
oracle.jdevimpl.uieditor.AbstractCanvasController
- All Implemented Interfaces:
- Controller
- public abstract class AbstractCanvasController
- extends BaseController
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractCanvasController
protected AbstractCanvasController()
getModelFactory
protected abstract ModelFactory getModelFactory()
supervisor
public Controller supervisor()
- Description copied from class:
BaseController
- Gets the supervising controller
- Specified by:
supervisor
in interface Controller
- Overrides:
supervisor
in class BaseController
- Returns:
- the supervising controller.
checkCommands
public void checkCommands(Context context,
Controller active)
- Description copied from class:
BaseController
- checkCommands() should be called on the controller associated with the
active view whenever the Context changes. The method gives the
controller a chance to assign the enabled/disabled status of each of
the context-sensitive Actions it owns. Calling this method on the
active controller should cause all context-sensitive Actions owned by
this controller and its supervisor's to be updated. No two
controllers should attempt to update the status of the same action or
else we would have redundant checking, which we want to avoid.
checkCommands() should end by calling supervisor().checkCommands() to
make sure actions dealt with by higher-level controllers get updated
as well. This method is implemented by BaseController to call
checkCommands() on the Ide itself.
Note that the only context-sensitive Actions should be updated inside
a checkCommands() method.
Updating the enabled/disabled state of an action is handled by the
update() command.
- Specified by:
checkCommands
in interface Controller
- Overrides:
checkCommands
in class BaseController
- Parameters:
context
- the current context. Null values are acceptable.active
- the controller associated with the active view.
Null values are acceptable.
Copyright ©1997, 2003, Oracle. All rights reserved.