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
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

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

  




 

 


Eclipse Platform
Release 3.5

org.eclipse.ui
Class LegacyHandlerSubmissionExpression

java.lang.Object
  extended by 

org.eclipse.core.expressions.Expression
      extended by 
org.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, HASH_CODE_NOT_COMPUTED, HASH_FACTOR, TRUE
 
Constructor Summary
LegacyHandlerSubmissionExpression ( 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 ( Object object)
           
  EvaluationResult evaluate ( IEvaluationContext context)
          Evaluates this expression.
  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

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

collectExpressionInfo

public final void collectExpressionInfo(
ExpressionInfo info)
Collect 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:
collectExpressionInfo in class Expression
Parameters:
info - the expression information object used to collect the information
Since:
3.2

computeHashCode

protected final int computeHashCode()
Description copied from class: Expression
Method to compute the hash code for this object. The result returned from this method in cached in the 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()

Overrides:
computeHashCode in class Expression
Returns:
a hash code for this object.

equals

public final boolean equals(
Object object)
Overrides:
equals in class Object

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()
Overrides:
toString in class Object

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