java.lang.Object
javax.ide.command.Controller
- public final class Controller
- extends java.lang.Object
Controllers encapulate extension defined UpdateHandlers and
Controller.NullInvokeHandlers. Generally, javax.ide.view.Views use
controllers to check whether a context sensitive command can be
executed given the current context, and to do the actual execution of
that command.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_updateClass
private javax.ide.util.MetaClass _updateClass
_invokeClass
private javax.ide.util.MetaClass _invokeClass
_isContextSensitive
private final boolean _isContextSensitive
_updateHandler
private UpdateHandler _updateHandler
_invokeHandler
private InvokeHandler _invokeHandler
_nullUpdateHandler
private static UpdateHandler _nullUpdateHandler
_nullInvokeHandler
private static InvokeHandler _nullInvokeHandler
Controller
public Controller(javax.ide.util.MetaClass invokeHandlerClass,
javax.ide.util.MetaClass updateHandlerClass)
- Constructs a controller object, deferring class loading and instantiation
of its invoke and update handler objects until needed. Generally, this is
only used by IDE implementations when loading controllers from the manifest
file.
Controller
public Controller(InvokeHandler invokeHandler,
UpdateHandler updateHandler)
- Constructs a controller object.
getInvokeHandler
public InvokeHandler getInvokeHandler()
- Get the invoke handler for this controller.
getUpdateHandler
public UpdateHandler getUpdateHandler()
- Get the update handler for this controller.
isContextSensitive
public boolean isContextSensitive()
- Get whether this controller is context sensitive. A context sensitive
controller has an associated UpdateHandler that adjusts the
action based on the context.