Package org.eclipse.ui
Class LegacyHandlerSubmissionExpression
java.lang.Object
org.eclipse.core.expressions.Expression
org.eclipse.ui.LegacyHandlerSubmissionExpression
An expression encapsulating all of the information from legacy handler submissions.
- Since:
- 3.1
- 
Field SummaryFields inherited from class org.eclipse.core.expressions.ExpressionATT_VALUE, FALSE, HASH_CODE_NOT_COMPUTED, HASH_FACTOR, TRUE
- 
Constructor SummaryConstructorsConstructorDescriptionLegacyHandlerSubmissionExpression(String activePartId, Shell activeShell, IWorkbenchPartSite activeSite) Constructs a new instance ofLegacyHandlerSubmissionExpression
- 
Method SummaryModifier and TypeMethodDescriptionvoidCollect expression info for a legacy handler submission.protected intMethod to compute the hash code for this object.booleanevaluate(IEvaluationContext context) Evaluates this expression.toString()Methods inherited from class org.eclipse.core.expressions.ExpressioncomputeExpressionInfo, equals, equals, hashCode, hashCode, hashCode
- 
Constructor Details- 
LegacyHandlerSubmissionExpressionpublic LegacyHandlerSubmissionExpression(String activePartId, Shell activeShell, IWorkbenchPartSite activeSite) Constructs a new instance ofLegacyHandlerSubmissionExpression- Parameters:
- activePartId- The part identifier to match with the active part;- nullif it will match any active part.
- activeShell- The shell to match with the active shell;- nullif it will match any active shell.
- activeSite- The site to match with the active site;- nullif it will match any active site.
 
 
- 
- 
Method Details- 
collectExpressionInfoCollect expression info for a legacy handler submission. Namely the active part id and name, active shell name, active workbench window shell name and the active site name.- Overrides:
- collectExpressionInfoin class- Expression
- Parameters:
- info- the expression information object used to collect the information
- Since:
- 3.2
 
- 
computeHashCodeprotected int computeHashCode()Description copied from class:ExpressionMethod to compute the hash code for this object. The result returned from this method in cached in thefHashCodefield. If the value returned from the method equalsExpression.HASH_CODE_NOT_COMPUTED(e.g.-1) then the value is incremented by one.This default implementation calls super.hashCode()- Overrides:
- computeHashCodein class- Expression
- Returns:
- a hash code for this object.
 
- 
equals
- 
evaluateEvaluates this expression. This tests the three conditions against the current state of the application (as defined bycontext). If a condition isnull, then it matches any possible value (i.e., it is not tested at all).- Specified by:
- evaluatein class- Expression
- Parameters:
- context- The context providing the current workbench state; must not be- null.
- Returns:
- EvaluationResult.TRUEif the conditions all matches;- EvaluationResult.FALSEotherwise.
 
- 
toString
 
-