public final class LegacyHandlerSubmissionExpression extends Expression
An expression encapsulating all of the information from legacy handler submissions.
ATT_VALUE, FALSE, HASH_CODE_NOT_COMPUTED, HASH_FACTOR, TRUE
Constructor and Description |
---|
LegacyHandlerSubmissionExpression(String activePartId,
Shell activeShell,
IWorkbenchPartSite activeSite)
Constructs a new instance of
LegacyHandlerSubmissionExpression |
Modifier and Type | Method and Description |
---|---|
void |
collectExpressionInfo(ExpressionInfo info)
Collect expression info for a legacy handler submission.
|
protected int |
computeHashCode()
Method to compute the hash code for this object.
|
boolean |
equals(Object object) |
EvaluationResult |
evaluate(IEvaluationContext context)
Evaluates this expression.
|
String |
toString() |
computeExpressionInfo, equals, equals, hashCode, hashCode, hashCode
public LegacyHandlerSubmissionExpression(String activePartId, Shell activeShell, IWorkbenchPartSite activeSite)
LegacyHandlerSubmissionExpression
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.public final void collectExpressionInfo(ExpressionInfo info)
collectExpressionInfo
in class Expression
info
- the expression information object used
to collect the informationprotected final int computeHashCode()
Expression
fHashCode
field. If the value returned from the method equals Expression.HASH_CODE_NOT_COMPUTED
(e.g. -1
) then the value is incremented by one.
This default implementation calls super.hashCode()
computeHashCode
in class Expression
public final EvaluationResult evaluate(IEvaluationContext context)
context
).
If a condition is null
, then it matches any possible
value (i.e., it is not tested at all).evaluate
in class Expression
context
- The context providing the current workbench state; must not be
null
.EvaluationResult.TRUE
if the conditions all
matches; EvaluationResult.FALSE
otherwise.
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.