- All Superinterfaces:
public interface IContextActivation extends org.eclipse.ui.internal.services.IEvaluationResultCache
A token representing the activation of a context. This token can later be used to cancel that activation. Without this token, then context will only become inactive if the component in which the context was activated is destroyed.
This interface is not intended to be implemented or extended by clients.
- See Also:
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description
getContextId()Returns the identifier of the context that is being activated.
getContextService()Returns the context service from which this activation was requested.
@Deprecated void clearActive()Deprecated.Use
IEvaluationResultCache.clearResult()instead.Clears the cached computation of the
isActivemethod, if any. This method is only intended for internal use. It provides a mechanism by which
ISourceProviderevents can invalidate state on a
String getContextId()Returns the identifier of the context that is being activated.
- The context identifier; never
IContextService getContextService()Returns the context service from which this activation was requested. This is used to ensure that an activation can only be retracted from the same service which issued it.
- The context service; never
@Deprecated boolean isActive(IEvaluationContext context)Deprecated.Use
IEvaluationResultCache.evaluate(IEvaluationContext)instead.Returns whether this context activation is currently active -- given the current state of the workbench. This method should cache its computation. The cache will be cleared by a call to
context- The context in which this state should be evaluated; must not be
trueif the activation is currently active;