Java Doc for ICommand.java in  » IDE-Eclipse » ui-workbench » org » eclipse » ui » commands » 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.commands 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.eclipse.ui.commands.ICommand

All known Subclasses:   org.eclipse.ui.internal.commands.CommandLegacyWrapper,
ICommand
public interface ICommand extends Comparable(Code)

An instance of ICommand is a handle representing a command as defined by the extension point org.eclipse.ui.commands. The identifier of the handle is identifier of the command being represented.

An instance of ICommand can be obtained from an instance of ICommandManager for any identifier, whether or not a command with that identifier defined in the plugin registry.

The handle-based nature of this API allows it to work well with runtime plugin activation and deactivation. If a command is defined, that means that its corresponding plug-in is active. If the plug-in is then deactivated, the command will still exist but it will be undefined. An attempts to use an undefined command will result in a NotDefinedException being thrown.

This interface is not intended to be extended or implemented by clients.


since:
   3.0
See Also:   ICommandListener
See Also:   ICommandManager
See Also:   org.eclipse.core.commands.Command




Method Summary
 voidaddCommandListener(ICommandListener commandListener)
     Registers an instance of ICommandListener to listen for changes to attributes of this instance.
Parameters:
  commandListener - the instance of ICommandListener to register.Must not be null.
 Objectexecute(Map parameterValuesByName)
     Executes with the map of parameter values by name.
Parameters:
  parameterValuesByName - the map of parameter values by name.
 MapgetAttributeValuesByName()
     Returns the map of attribute values by name.

Notification is sent to all registered listeners if this property changes.

the map of attribute values by name.
 StringgetCategoryId()
    

Returns the identifier of the category of the command represented by this handle.

Notification is sent to all registered listeners if this attribute changes.

the identifier of the category of the command represented by thishandle.
 StringgetDescription()
    

Returns the description of the command represented by this handle, suitable for display to the user.

 StringgetId()
     Returns the identifier of this handle. the identifier of this handle.
 ListgetKeySequenceBindings()
    

Returns the list of key sequence bindings for this handle.

 StringgetName()
    

Returns the name of the command represented by this handle, suitable for display to the user.

Notification is sent to all registered listeners if this attribute changes.

the name of the command represented by this handle.
 booleanisDefined()
    

Returns whether or not the command represented by this handle is defined.

 booleanisHandled()
    

Returns whether or not this command is handled.

 voidremoveCommandListener(ICommandListener commandListener)
     Unregisters an instance of ICommandListener listening for changes to attributes of this instance.
Parameters:
  commandListener - the instance of ICommandListener to unregister.Must not be null.



Method Detail
addCommandListener
void addCommandListener(ICommandListener commandListener)(Code)
Registers an instance of ICommandListener to listen for changes to attributes of this instance.
Parameters:
  commandListener - the instance of ICommandListener to register.Must not be null. If an attempt is made toregister an instance of ICommandListener whichis already registered with this instance, no operation isperformed.



execute
Object execute(Map parameterValuesByName) throws ExecutionException, NotHandledException(Code)
Executes with the map of parameter values by name.
Parameters:
  parameterValuesByName - the map of parameter values by name. Reserved for future use,must be null. the result of the execution. Reserved for future use, must benull.
throws:
  ExecutionException - if an exception occurred during execution.
throws:
  NotHandledException - if this is not handled.



getAttributeValuesByName
Map getAttributeValuesByName() throws NotHandledException(Code)
Returns the map of attribute values by name.

Notification is sent to all registered listeners if this property changes.

the map of attribute values by name. This map may be empty, butis guaranteed not to be null. If this map is notempty, its collection of keys is guaranteed to only containinstances of String.
throws:
  NotHandledException - if this is not handled.



getCategoryId
String getCategoryId() throws NotDefinedException(Code)

Returns the identifier of the category of the command represented by this handle.

Notification is sent to all registered listeners if this attribute changes.

the identifier of the category of the command represented by thishandle. May be null.
throws:
  NotDefinedException - if the command represented by this handle is not defined.



getDescription
String getDescription() throws NotDefinedException(Code)

Returns the description of the command represented by this handle, suitable for display to the user.

Notification is sent to all registered listeners if this attribute changes.

the description of the command represented by this handle.Guaranteed not to be null.
throws:
  NotDefinedException - if the command represented by this handle is not defined.



getId
String getId()(Code)
Returns the identifier of this handle. the identifier of this handle. Guaranteed not to benull.



getKeySequenceBindings
List getKeySequenceBindings()(Code)

Returns the list of key sequence bindings for this handle. This method will return all key sequence bindings for this handle's identifier, whether or not the command represented by this handle is defined.

Notification is sent to all registered listeners if this attribute changes.

the list of key sequence bindings. This list may be empty, but isguaranteed not to be null. If this list is notempty, it is guaranteed to only contain instances ofIKeySequenceBinding.



getName
String getName() throws NotDefinedException(Code)

Returns the name of the command represented by this handle, suitable for display to the user.

Notification is sent to all registered listeners if this attribute changes.

the name of the command represented by this handle. Guaranteednot to be null.
throws:
  NotDefinedException - if the command represented by this handle is not defined.



isDefined
boolean isDefined()(Code)

Returns whether or not the command represented by this handle is defined.

Notification is sent to all registered listeners if this attribute changes.

true, iff the command represented by this handleis defined.



isHandled
boolean isHandled()(Code)

Returns whether or not this command is handled. A command is handled if it currently has an IHandler instance associated with it. A command needs a handler to carry out the ICommand.execute(Map) method.

Notification is sent to all registered listeners if this attribute changes.

true, iff this command is enabled.



removeCommandListener
void removeCommandListener(ICommandListener commandListener)(Code)
Unregisters an instance of ICommandListener listening for changes to attributes of this instance.
Parameters:
  commandListener - the instance of ICommandListener to unregister.Must not be null. If an attempt is made tounregister an instance of ICommandListenerwhich is not already registered with this instance, nooperation is performed.



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