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.
ISources
,
ISourceProvider
Modifier and Type | Method and Description |
---|---|
void |
clearActive()
Deprecated.
Use
IEvaluationResultCache.clearResult() instead. |
String |
getContextId()
Returns the identifier of the context that is being activated.
|
IContextService |
getContextService()
Returns the context service from which this activation was requested.
|
boolean |
isActive(IEvaluationContext context)
Deprecated.
Use
IEvaluationResultCache.evaluate(IEvaluationContext)
instead. |
@Deprecated void clearActive()
IEvaluationResultCache.clearResult()
instead.isActive
method, if
any. This method is only intended for internal use. It provides a
mechanism by which ISourceProvider
events can invalidate
state on a IContextActivation
instance.String getContextId()
null
.IContextService getContextService()
null
.@Deprecated boolean isActive(IEvaluationContext context)
IEvaluationResultCache.evaluate(IEvaluationContext)
instead.clearActive
.context
- The context in which this state should be evaluated; must not
be null
.true
if the activation is currently active;
false
otherwise.
Copyright (c) 2000, 2018 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.