Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Mail Systems
Eclipse Documentation

How To Guides
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Problem Solutions
Privacy Policy




Eclipse Platform
Release 3.5

Interface IContextActivation

All Superinterfaces:

public interface IContextActivation

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:
ISources, ISourceProvider

Method Summary
 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.
Methods inherited from interface
clearResult, evaluate, getExpression, getSourcePriority, setResult

Method Detail


void clearActive()
Deprecated. Use IEvaluationResultCache.clearResult() instead.

Clears the cached computation of the 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()
Returns the identifier of the context that is being activated.

The context identifier; never null.


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 null.


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 clearActive.

context - The context in which this state should be evaluated; must not be null.
true if the activation is currently active; false otherwise.

Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.

  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire