Eclipse Platform
Release 3.1

org.eclipse.ui
Class LegacyHandlerSubmissionExpression

java.lang.Object
  extended byorg.eclipse.core.expressions.Expression
      extended byorg.eclipse.ui.LegacyHandlerSubmissionExpression

public final class LegacyHandlerSubmissionExpression
extends Expression

An expression encapsulating all of the information from legacy handler submissions.

Since:
3.1

Field Summary
 
Fields inherited from class org.eclipse.core.expressions.Expression
ATT_VALUE, FALSE, TRUE
 
Constructor Summary
LegacyHandlerSubmissionExpression(String activePartId, Shell activeShell, IWorkbenchPartSite activeSite)
          Constructs a new instance of LegacyHandlerSubmissionExpression
 
Method Summary
 EvaluationResult evaluate(IEvaluationContext context)
          Evaluates this expression.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LegacyHandlerSubmissionExpression

public LegacyHandlerSubmissionExpression(String activePartId,
                                         Shell activeShell,
                                         IWorkbenchPartSite activeSite)
Constructs a new instance of LegacyHandlerSubmissionExpression

Parameters:
activePartId - The part identifier to match with the active part; null if it will match any active part.
activeShell - The shell to match with the active shell; null if it will match any active shell.
activeSite - The site to match with the active site; null if it will match any active site.
Method Detail

evaluate

public final EvaluationResult evaluate(IEvaluationContext context)
Evaluates this expression. This tests the three conditions against the current state of the application (as defined by context). If a condition is null, then it matches any possible value (i.e., it is not tested at all).

Specified by:
evaluate in class Expression
Parameters:
context - The context providing the current workbench state; must not be null.
Returns:
EvaluationResult.TRUE if the conditions all matches; EvaluationResult.FALSE otherwise.

toString

public final String toString()

Eclipse Platform
Release 3.1

Guidelines for using Eclipse APIs.

Copyright (c) IBM Corp. and others 2000, 2005. All rights reserved.