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


org.eclipse.ui.actions.PartEventAction
   org.eclipse.ui.actions.RetargetAction

All known Subclasses:   org.eclipse.ui.actions.LabelRetargetAction,
RetargetAction
public class RetargetAction extends PartEventAction implements ActionFactory.IWorkbenchAction(Code)
A RetargetAction tracks the active part in the workbench. Each RetargetAction has an ID. If the active part provides an action handler for the ID the enable and check state of the RetargetAction is determined from the enable and check state of the handler. If the active part does not provide an action handler then this action is disabled.

Note: instances of this class add themselves as listeners to their action handler. It is important for the creator of a retarget action to call dispose when the action is no longer needed. This will ensure that the listener is removed.

This class may be instantiated. It is not intented to be subclassed.


since:
   2.0



Constructor Summary
public  RetargetAction(String actionID, String text)
     Constructs a RetargetAction with the given action id and text.
public  RetargetAction(String actionID, String text, int style)
     Constructs a RetargetAction with the given action id, text and style.

Method Summary
public  voiddispose()
     Disposes of the action and any resources held.
public  voidenableAccelerator(boolean b)
     Enables the accelerator for this action.
public  intgetAccelerator()
    
public  IActiongetActionHandler()
     Returns the action handler.
final public  booleanisHandled()
    
public  voidpartActivated(IWorkbenchPart part)
     A workbench part has been activated.
public  voidpartClosed(IWorkbenchPart part)
     A workbench part has been closed.
public  voidpartDeactivated(IWorkbenchPart part)
     A workbench part has been deactivated.
protected  voidpropagateChange(PropertyChangeEvent event)
     Either the action handler itself has changed, or the configured action handlers on the action bars have changed.
public  voidrun()
     Invoked when an action occurs.
public  voidrunWithEvent(Event event)
     Invoked when an action occurs.
protected  voidsetActionHandler(IAction newHandler)
     Sets the action handler.
public  voidsetChecked(boolean checked)
    
public  voidsetHelpListener(HelpListener listener)
     The RetargetAction implementation of this method declared on IAction stores the help listener in a local field.
final public  StringtoString()
     Returns a string representation of this action.


Constructor Detail
RetargetAction
public RetargetAction(String actionID, String text)(Code)
Constructs a RetargetAction with the given action id and text.
Parameters:
  actionID - the retargetable action id
Parameters:
  text - the action's text, or null if there is no text



RetargetAction
public RetargetAction(String actionID, String text, int style)(Code)
Constructs a RetargetAction with the given action id, text and style.
Parameters:
  actionID - the retargetable action id
Parameters:
  text - the action's text, or null if there is no text
Parameters:
  style - one of AS_PUSH_BUTTON, AS_CHECK_BOX,AS_DROP_DOWN_MENU, AS_RADIO_BUTTON, andAS_UNSPECIFIED
since:
   3.0




Method Detail
dispose
public void dispose()(Code)
Disposes of the action and any resources held.



enableAccelerator
public void enableAccelerator(boolean b)(Code)
Enables the accelerator for this action.
Parameters:
  b - the new enable state



getAccelerator
public int getAccelerator()(Code)



getActionHandler
public IAction getActionHandler()(Code)
Returns the action handler. This method was made public in 3.0. The current action handling this retargettable action. Thishandler will be null if there is no currenthandler.



isHandled
final public boolean isHandled()(Code)



partActivated
public void partActivated(IWorkbenchPart part)(Code)
A workbench part has been activated. Try to connect to it.
Parameters:
  part - the workbench part that has been activated



partClosed
public void partClosed(IWorkbenchPart part)(Code)
A workbench part has been closed.
Parameters:
  part - the workbench part that has been closed



partDeactivated
public void partDeactivated(IWorkbenchPart part)(Code)
A workbench part has been deactivated. Disconnect from it.
Parameters:
  part - the workbench part that has been deactivated



propagateChange
protected void propagateChange(PropertyChangeEvent event)(Code)
Either the action handler itself has changed, or the configured action handlers on the action bars have changed. Update self.



run
public void run()(Code)
Invoked when an action occurs.



runWithEvent
public void runWithEvent(Event event)(Code)
Invoked when an action occurs.



setActionHandler
protected void setActionHandler(IAction newHandler)(Code)
Sets the action handler.



setChecked
public void setChecked(boolean checked)(Code)



setHelpListener
public void setHelpListener(HelpListener listener)(Code)
The RetargetAction implementation of this method declared on IAction stores the help listener in a local field. The supplied listener is only used if there is no hanlder.



toString
final public String toString()(Code)
Returns a string representation of this action. A string representation of this action.
since:
   3.2



Methods inherited from org.eclipse.ui.actions.PartEventAction
public IWorkbenchPart getActivePart()(Code)(Java Doc)
public void partActivated(IWorkbenchPart part)(Code)(Java Doc)
public void partBroughtToTop(IWorkbenchPart part)(Code)(Java Doc)
public void partClosed(IWorkbenchPart part)(Code)(Java Doc)
public void partDeactivated(IWorkbenchPart part)(Code)(Java Doc)
public void partOpened(IWorkbenchPart part)(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.