Java Doc for ActionExpression.java in  » IDE-Eclipse » ui-workbench » org » eclipse » ui » internal » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » IDE Eclipse » ui workbench » org.eclipse.ui.internal 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.eclipse.ui.internal.ActionExpression

ActionExpression
public class ActionExpression (Code)
An ActionExpression is used to evaluate the enablement / visibility criteria for an action.


Field Summary
final public static  StringEXP_TYPE_AND
     Constant definition for AND.
final public static  StringEXP_TYPE_NOT
     Constant definition for NOT.
final public static  StringEXP_TYPE_OBJECT_CLASS
     Constant definition for objectClass.
final public static  StringEXP_TYPE_OBJECT_STATE
     Constant definition for objectState.
final public static  StringEXP_TYPE_OR
     Constant definition for OR.
final public static  StringEXP_TYPE_PLUG_IN_STATE
     Constant definition for pluginState.
final public static  StringEXP_TYPE_SYSTEM_PROPERTY
     Constant definition for systemProperty.

Constructor Summary
public  ActionExpression(IConfigurationElement element)
     Creates an action expression for the given configuration element.
public  ActionExpression(String expressionType, String expressionValue)
     Create an instance of the receiver with the given expression type and value.

Method Summary
final public  booleanequals(Object object)
    
public  String[]extractObjectClasses()
     Extract the object class test from the expression.
final public  inthashCode()
     Computes the hash code for this object based on the id.
public  booleanisEnabledFor(IStructuredSelection selection)
     Returns whether the expression is valid for all elements of the given selection.
public  booleanisEnabledFor(Object object)
     Returns whether the expression is valid for the given object.
public  booleanisEnabledForExpression(Object object, String expressionType)
     Returns whether or not the receiver is potentially valid for the object via just the extension type.
public  CollectionvaluesForExpression(String expressionType)
     Return the values of the expression type that the receiver is enabled for.

Field Detail
EXP_TYPE_AND
final public static String EXP_TYPE_AND(Code)
Constant definition for AND.



EXP_TYPE_NOT
final public static String EXP_TYPE_NOT(Code)
Constant definition for NOT.



EXP_TYPE_OBJECT_CLASS
final public static String EXP_TYPE_OBJECT_CLASS(Code)
Constant definition for objectClass.



EXP_TYPE_OBJECT_STATE
final public static String EXP_TYPE_OBJECT_STATE(Code)
Constant definition for objectState.



EXP_TYPE_OR
final public static String EXP_TYPE_OR(Code)
Constant definition for OR.



EXP_TYPE_PLUG_IN_STATE
final public static String EXP_TYPE_PLUG_IN_STATE(Code)
Constant definition for pluginState.



EXP_TYPE_SYSTEM_PROPERTY
final public static String EXP_TYPE_SYSTEM_PROPERTY(Code)
Constant definition for systemProperty.




Constructor Detail
ActionExpression
public ActionExpression(IConfigurationElement element)(Code)
Creates an action expression for the given configuration element.
Parameters:
  element - The element to build the expression from.



ActionExpression
public ActionExpression(String expressionType, String expressionValue)(Code)
Create an instance of the receiver with the given expression type and value. Currently the only supported expression type is EXP_TYPE_OBJECT_CLASS.
Parameters:
  expressionType - The expression constant we are creating an instance of.
Parameters:
  expressionValue - The name of the class we are creating an expression for.




Method Detail
equals
final public boolean equals(Object object)(Code)



extractObjectClasses
public String[] extractObjectClasses()(Code)
Extract the object class test from the expression. This allows clients (e.g. the decorator manager) to handle object class testing in a more optimized way. This method removes the objectClass test from the expression and returns the object class. The expression is not changed and a null is returned if no object class is found. the object class or null if none was found.



hashCode
final public int hashCode()(Code)
Computes the hash code for this object based on the id. The hash code for this object.



isEnabledFor
public boolean isEnabledFor(IStructuredSelection selection)(Code)
Returns whether the expression is valid for all elements of the given selection.
Parameters:
  selection - the structured selection to use boolean whether the expression is valid for the selection.



isEnabledFor
public boolean isEnabledFor(Object object)(Code)
Returns whether the expression is valid for the given object.
Parameters:
  object - the object to validate against (can be null) boolean whether the expression is valid for the object.



isEnabledForExpression
public boolean isEnabledForExpression(Object object, String expressionType)(Code)
Returns whether or not the receiver is potentially valid for the object via just the extension type. Currently the only supported expression type is EXP_TYPE_OBJECT_CLASS.
Parameters:
  object - the object to validate against (can be null)
Parameters:
  expressionType - the expression type to consider boolean whether the expression is potentially valid for theobject.



valuesForExpression
public Collection valuesForExpression(String expressionType)(Code)
Return the values of the expression type that the receiver is enabled for. If the receiver is not enabled for the expressionType then return null.
Parameters:
  expressionType - the expression type to consider Collection if there are values for this expression ornull if this is not possible in the receiver orany of it's children



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.