| org.eclipse.ui.internal.handlers.HandlerProxy
HandlerProxy | final public class HandlerProxy extends AbstractHandler implements IElementUpdater(Code) | |
A proxy for a handler that has been defined in XML. This delays the class
loading until the handler is really asked for information (besides the
priority or the command identifier). Asking a proxy for anything but the
attributes defined publicly in this class will cause the proxy to instantiate
the proxied handler.
since: 3.0 |
Constructor Summary | |
public | HandlerProxy(IConfigurationElement configurationElement, String handlerAttributeName) Constructs a new instance of HandlerProxy with all the
information it needs to try to avoid loading until it is needed. | public | HandlerProxy(IConfigurationElement configurationElement, String handlerAttributeName, Expression enabledWhenExpression, IEvaluationService evaluationService) Constructs a new instance of HandlerProxy with all the
information it needs to try to avoid loading until it is needed.
Parameters: configurationElement - The configuration element from which the real class can beloaded at run-time; must not be null . Parameters: handlerAttributeName - The name of the attribute or element containing the handlerexecutable extension; must not be null . Parameters: enabledWhenExpression - The name of the element containing the enabledWhen expression.This should be a child of theconfigurationElement . |
HandlerProxy | public HandlerProxy(IConfigurationElement configurationElement, String handlerAttributeName)(Code) | | Constructs a new instance of HandlerProxy with all the
information it needs to try to avoid loading until it is needed.
Parameters: configurationElement - The configuration element from which the real class can beloaded at run-time; must not be null . Parameters: handlerAttributeName - The name of the attibute or element containing the handlerexecutable extension; must not be null . |
HandlerProxy | public HandlerProxy(IConfigurationElement configurationElement, String handlerAttributeName, Expression enabledWhenExpression, IEvaluationService evaluationService)(Code) | | Constructs a new instance of HandlerProxy with all the
information it needs to try to avoid loading until it is needed.
Parameters: configurationElement - The configuration element from which the real class can beloaded at run-time; must not be null . Parameters: handlerAttributeName - The name of the attribute or element containing the handlerexecutable extension; must not be null . Parameters: enabledWhenExpression - The name of the element containing the enabledWhen expression.This should be a child of theconfigurationElement . If this value isnull , then there is no enablement expression(i.e., enablement will be delegated to the handler whenpossible). Parameters: evaluationService - The evaluation service to manage enabledWhen expressionstrying to evaluate the enabledWhenExpression .This value may be null only if theenabledWhenExpression is null . |
dispose | final public void dispose()(Code) | | Passes the dipose on to the proxied handler, if it has been loaded.
|
execute | final public Object execute(ExecutionEvent event) throws ExecutionException(Code) | | |
getProxyEnabled | boolean getProxyEnabled()(Code) | | |
isEnabled | final public boolean isEnabled()(Code) | | |
isHandled | final public boolean isHandled()(Code) | | |
setEnabledFor | void setEnabledFor(IEvaluationContext context) throws ExecutionException(Code) | | |
setProxyEnabled | void setProxyEnabled(boolean enabled)(Code) | | |
|
|