|
Eclipse Platform Release 3.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.core.expressions.Expression
org.eclipse.ui.LegacyHandlerSubmissionExpression
public final class LegacyHandlerSubmissionExpression
An expression encapsulating all of the information from legacy handler submissions.
Field Summary |
---|
Fields inherited from class org.eclipse.core.expressions.Expression |
---|
ATT_VALUE, FALSE, HASH_CODE_NOT_COMPUTED, HASH_FACTOR, TRUE |
Constructor Summary | |
---|---|
LegacyHandlerSubmissionExpression(java.lang.String activePartId,
Shell activeShell,
IWorkbenchPartSite activeSite)
Constructs a new instance of LegacyHandlerSubmissionExpression |
Method Summary | |
---|---|
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(java.lang.Object object)
|
EvaluationResult |
evaluate(IEvaluationContext context)
Evaluates this expression. |
java.lang.String |
toString()
|
Methods inherited from class org.eclipse.core.expressions.Expression |
---|
computeExpressionInfo, equals, equals, hashCode, hashCode, hashCode |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LegacyHandlerSubmissionExpression(java.lang.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.Method Detail |
---|
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 boolean equals(java.lang.Object object)
equals
in class java.lang.Object
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.public final java.lang.String toString()
toString
in class java.lang.Object
|
Eclipse Platform Release 3.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.