Java Doc for ActionFactory.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) 


java.lang.Object
   org.eclipse.ui.actions.ActionFactory

All known Subclasses:   org.eclipse.ui.internal.WorkbenchEditorsAction,  org.eclipse.ui.internal.actions.OpenPerspectiveDialogAction,  org.eclipse.ui.actions.NewWizardDropDownAction,  org.eclipse.ui.actions.ExportResourcesAction,  org.eclipse.ui.actions.ImportResourcesAction,  org.eclipse.ui.internal.IntroAction,  org.eclipse.ui.actions.RetargetAction,  org.eclipse.ui.internal.OpenPreferencesAction,  org.eclipse.ui.actions.OpenInNewWindowAction,  org.eclipse.ui.actions.NewWizardAction,  org.eclipse.ui.internal.QuitAction,  org.eclipse.ui.internal.LockToolBarAction,  org.eclipse.ui.operations.OperationHistoryActionHandler,  org.eclipse.ui.internal.about.AboutAction,  org.eclipse.ui.internal.PerspectiveAction,  org.eclipse.ui.internal.QuickAccessMenu,  org.eclipse.ui.internal.WorkbookEditorsAction,  org.eclipse.ui.internal.PageEventAction,
ActionFactory
abstract public class ActionFactory (Code)
Access to standard actions provided by the workbench.

Most of the functionality of this class is provided by static methods and fields. Example usage:

 MenuManager menu = ...; 
 ActionFactory.IWorkbenchAction closeEditorAction 
 = ActionFactory.CLOSE.create(window); 
 menu.add(closeEditorAction);
 

Clients may declare other classes that provide additional application-specific action factories.


since:
   3.0

Inner Class :public interface IWorkbenchAction extends IAction

Field Summary
final public static  ActionFactoryABOUT
     Workbench action: Displays the About dialog.
final public static  ActionFactoryACTIVATE_EDITOR
     Workbench action (id "activateEditor"): Activate the most recently used editor.
final public static  ActionFactoryBACK
     Workbench action (id "back"): Back.
final public static  ActionFactoryBACKWARD_HISTORY
     Workbench action (id "backardHistory"): Backward in the navigation history.
final public static  ActionFactoryCLOSE
     Workbench action (id "close"): Close the active editor.
final public static  ActionFactoryCLOSE_ALL
     Workbench action (id "closeAll"): Close all open editors.
final public static  ActionFactoryCLOSE_ALL_PERSPECTIVES
     Workbench action (id "closeAllPerspectives"): Closes all perspectives.
final public static  ActionFactoryCLOSE_ALL_SAVED
     Workbench action (id "closeAllSaved"): Close all open editors except those with unsaved changes.
final public static  ActionFactoryCLOSE_OTHERS
     Workbench action (id "closeOthers"): Close all editors except the one that is active.
final public static  ActionFactoryCLOSE_PERSPECTIVE
     Workbench action (id "closePerspective"): Closes the current perspective.
final public static  ActionFactoryCOPY
     Workbench action (id "copy"): Copy.
final public static  ActionFactoryCUT
     Workbench action (id "cut"): Cut.
final public static  ActionFactoryDELETE
     Workbench action (id "delete"): Delete.
final public static  ActionFactoryDYNAMIC_HELP
     Workbench action (id "dynamicHelp"): Open the dynamic help.
final public static  ActionFactoryEDIT_ACTION_SETS
     Workbench action (id "editActionSets"): Edit the action sets.
final public static  ActionFactoryEXPORT
     Workbench action (id "export"): Opens the export wizard.
final public static  ActionFactoryFIND
     Workbench action (id "find"): Find.
final public static  ActionFactoryFORWARD
     Workbench action (id "forward"): Forward.
final public static  ActionFactoryFORWARD_HISTORY
     Workbench action (id "forwardHistory"): Forward in the navigation history.
final public static  ActionFactoryGO_INTO
     Workbench action (id "goInto"): Go Into.
final public static  ActionFactoryHELP_CONTENTS
     Workbench action (id "helpContents"): Open the help contents.
final public static  ActionFactoryHELP_SEARCH
     Workbench action (id "helpSearch"): Open the help search.
final public static  ActionFactoryIMPORT
     Workbench action (id "import"): Opens the import wizard.
final public static  ActionFactoryINTRO
     Workbench action (id "intro"): Activate the introduction extension.
final public static  ActionFactoryLOCK_TOOL_BAR
     Workbench action (id "lockToolBar"): Lock/unlock the workbench window tool bar.
final public static  ActionFactoryMAXIMIZE
     Workbench action (id "maximize"): Maximize/restore the active part.
final public static  ActionFactoryMINIMIZE
     Workbench action (id "minimize"): Minimizes the active part.
final public static  ActionFactoryMOVE
     Workbench action (id "move"): Move.
final public static  ActionFactoryNEW
     Workbench action (id "new"): Opens the new wizard dialog.
final public static  ActionFactoryNEW_EDITOR
     Workbench action (id "newEditor"): Open a new editor on the active editor's input.
final public static  ActionFactoryNEW_WIZARD_DROP_DOWN
     Workbench action (id "newWizardDropDown"): Drop-down action which shows shows the new wizard drop down, or opens the new wizard dialog when pressed.
final public static  ActionFactoryNEXT
     Workbench action (id "next"): Next.
final public static  ActionFactoryNEXT_EDITOR
     Workbench action (id "nextEditor"): Next editor.
final public static  ActionFactoryNEXT_PART
     Workbench action (id "nextPart"): Next part.
final public static  ActionFactoryNEXT_PERSPECTIVE
     Workbench action (id "nextPerspective"): Next perspective.
final public static  ActionFactoryOPEN_NEW_WINDOW
     Workbench action (id "openNewWindow"): Open a new workbench window.
final public static  ActionFactoryOPEN_PERSPECTIVE_DIALOG
     Workbench action (id "openPerspectiveDialog"): Open the Open Perspective dialog.
final public static  ActionFactoryPASTE
     Workbench action (id "paste"): Paste.
final public static  ActionFactoryPREFERENCES
     Workbench action (id "preferences"): Displays the Preferences dialog.
final public static  ActionFactoryPREVIOUS
     Workbench action (id "previous"): Previous.
final public static  ActionFactoryPREVIOUS_EDITOR
     Workbench action (id "previousEditor"): Previous editor.
final public static  ActionFactoryPREVIOUS_PART
     Workbench action (id "previousPart"): Previous part.
final public static  ActionFactoryPREVIOUS_PERSPECTIVE
     Workbench action (id "previousPerspective"): Previous perspective.
final public static  ActionFactoryPRINT
     Workbench action (id "print"): Print.
final public static  ActionFactoryPROPERTIES
     Workbench action (id "properties"): Properties.
final public static  ActionFactoryQUIT
     Workbench action (id "quit"): Quit (close the workbench).
final public static  ActionFactoryREDO
     Workbench action (id "redo"): Redo.
final public static  ActionFactoryREFRESH
     Workbench action (id "refresh"): Refresh.
final public static  ActionFactoryRENAME
     Workbench action (id "rename"): Rename.
final public static  ActionFactoryRESET_PERSPECTIVE
     Workbench action (id "resetPerspective"): Resets the current perspective.
final public static  ActionFactoryREVERT
     Workbench action (id "revert"): Revert.
final public static  ActionFactorySAVE
     Workbench action (id "save"): Save the active editor.
final public static  ActionFactorySAVE_ALL
     Workbench action (id "saveAll"): Save all open editors with unsaved changes.
final public static  ActionFactorySAVE_AS
     Workbench action (id "saveAs"): Save As for the active editor.
final public static  ActionFactorySAVE_PERSPECTIVE
     Workbench action (id "savePerspective"): Save the current perspective.
final public static  ActionFactorySELECT_ALL
     Workbench action (id "selectAll"): Select All.
final public static  ActionFactorySHOW_EDITOR
     Workbench action (id "showEditor"): Show/hide the editor area.
final public static  ActionFactorySHOW_OPEN_EDITORS
     Workbench action (id "showOpenEditors"): Show a list of open (and recently closed) editors.
final public static  ActionFactorySHOW_PART_PANE_MENU
     Workbench action (id "showPartPaneMenu"): Show the part pane menu.
final public static  ActionFactorySHOW_QUICK_ACCESS
     Workbench action (id "showQuickAccess"): Shows a list of UI elements like editors, views, perspectives etc.
final public static  ActionFactorySHOW_VIEW_MENU
     Workbench action (id "showViewMenu"): Show the view menu.
final public static  ActionFactorySHOW_WORKBOOK_EDITORS
     Workbench action (id "showWorkbookEditors"): Shows a list of open editors in the current or last active workbook.
final public static  ActionFactoryTOGGLE_COOLBAR
     Workbench action (id "toggleCoolbar"): Toggle the visibility of the coolbar and perspective switcher.
final public static  ActionFactoryUNDO
     Workbench action (id "undo"): Undo.
final public static  ActionFactoryUP
     Workbench action (id "up"): Up.

Constructor Summary
protected  ActionFactory(String actionId)
     Creates a new workbench action factory with the given id.

Method Summary
abstract public  IWorkbenchActioncreate(IWorkbenchWindow window)
     Creates a new standard action for the given workbench window.
public  StringgetId()
     Returns the id of this action factory.
public static  voidlinkCycleActionPair(IWorkbenchAction next, IWorkbenchAction previous)
     Establishes bi-direction connections between the forward and backward actions of a cycle pair.

Field Detail
ABOUT
final public static ActionFactory ABOUT(Code)
Workbench action: Displays the About dialog. This action maintains its enablement state.



ACTIVATE_EDITOR
final public static ActionFactory ACTIVATE_EDITOR(Code)
Workbench action (id "activateEditor"): Activate the most recently used editor. This action maintains its enablement state.



BACK
final public static ActionFactory BACK(Code)
Workbench action (id "back"): Back. This action is a RetargetAction with id "back". This action maintains its enablement state.



BACKWARD_HISTORY
final public static ActionFactory BACKWARD_HISTORY(Code)
Workbench action (id "backardHistory"): Backward in the navigation history. This action maintains its enablement state.



CLOSE
final public static ActionFactory CLOSE(Code)
Workbench action (id "close"): Close the active editor. This action maintains its enablement state.



CLOSE_ALL
final public static ActionFactory CLOSE_ALL(Code)
Workbench action (id "closeAll"): Close all open editors. This action maintains its enablement state.



CLOSE_ALL_PERSPECTIVES
final public static ActionFactory CLOSE_ALL_PERSPECTIVES(Code)
Workbench action (id "closeAllPerspectives"): Closes all perspectives. This action maintains its enablement state.



CLOSE_ALL_SAVED
final public static ActionFactory CLOSE_ALL_SAVED(Code)
Workbench action (id "closeAllSaved"): Close all open editors except those with unsaved changes. This action maintains its enablement state.



CLOSE_OTHERS
final public static ActionFactory CLOSE_OTHERS(Code)
Workbench action (id "closeOthers"): Close all editors except the one that is active. This action maintains its enablement state.
since:
   3.2



CLOSE_PERSPECTIVE
final public static ActionFactory CLOSE_PERSPECTIVE(Code)
Workbench action (id "closePerspective"): Closes the current perspective. This action maintains its enablement state.



COPY
final public static ActionFactory COPY(Code)
Workbench action (id "copy"): Copy. This action is a RetargetAction with id "copy". This action maintains its enablement state.



CUT
final public static ActionFactory CUT(Code)
Workbench action (id "cut"): Cut. This action is a RetargetAction with id "cut". This action maintains its enablement state.



DELETE
final public static ActionFactory DELETE(Code)
Workbench action (id "delete"): Delete. This action is a RetargetAction with id "delete". This action maintains its enablement state.



DYNAMIC_HELP
final public static ActionFactory DYNAMIC_HELP(Code)
Workbench action (id "dynamicHelp"): Open the dynamic help. This action is always enabled.
since:
   3.1



EDIT_ACTION_SETS
final public static ActionFactory EDIT_ACTION_SETS(Code)
Workbench action (id "editActionSets"): Edit the action sets. This action maintains its enablement state.



EXPORT
final public static ActionFactory EXPORT(Code)
Workbench action (id "export"): Opens the export wizard. This action maintains its enablement state.



FIND
final public static ActionFactory FIND(Code)
Workbench action (id "find"): Find. This action is a RetargetAction with id "find". This action maintains its enablement state.



FORWARD
final public static ActionFactory FORWARD(Code)
Workbench action (id "forward"): Forward. This action is a RetargetAction with id "forward". This action maintains its enablement state.



FORWARD_HISTORY
final public static ActionFactory FORWARD_HISTORY(Code)
Workbench action (id "forwardHistory"): Forward in the navigation history. This action maintains its enablement state.



GO_INTO
final public static ActionFactory GO_INTO(Code)
Workbench action (id "goInto"): Go Into. This action is a RetargetAction with id "goInto". This action maintains its enablement state.



HELP_CONTENTS
final public static ActionFactory HELP_CONTENTS(Code)
Workbench action (id "helpContents"): Open the help contents. This action is always enabled.



HELP_SEARCH
final public static ActionFactory HELP_SEARCH(Code)
Workbench action (id "helpSearch"): Open the help search. This action is always enabled.
since:
   3.1



IMPORT
final public static ActionFactory IMPORT(Code)
Workbench action (id "import"): Opens the import wizard. This action maintains its enablement state.



INTRO
final public static ActionFactory INTRO(Code)
Workbench action (id "intro"): Activate the introduction extension.



LOCK_TOOL_BAR
final public static ActionFactory LOCK_TOOL_BAR(Code)
Workbench action (id "lockToolBar"): Lock/unlock the workbench window tool bar. This action maintains its enablement state.



MAXIMIZE
final public static ActionFactory MAXIMIZE(Code)
Workbench action (id "maximize"): Maximize/restore the active part. This action maintains its enablement state.



MINIMIZE
final public static ActionFactory MINIMIZE(Code)
Workbench action (id "minimize"): Minimizes the active part. This action maintains its enablement state.
since:
   3.1



MOVE
final public static ActionFactory MOVE(Code)
Workbench action (id "move"): Move. This action is a RetargetAction with id "move". This action maintains its enablement state.



NEW
final public static ActionFactory NEW(Code)
Workbench action (id "new"): Opens the new wizard dialog. This action maintains its enablement state.



NEW_EDITOR
final public static ActionFactory NEW_EDITOR(Code)
Workbench action (id "newEditor"): Open a new editor on the active editor's input. This action maintains its enablement state.
since:
   3.1



NEW_WIZARD_DROP_DOWN
final public static ActionFactory NEW_WIZARD_DROP_DOWN(Code)
Workbench action (id "newWizardDropDown"): Drop-down action which shows shows the new wizard drop down, or opens the new wizard dialog when pressed. For use in the toolbar. This action maintains its enablement state.
since:
   3.1



NEXT
final public static ActionFactory NEXT(Code)
Workbench action (id "next"): Next. This action is a RetargetAction with id "next". This action maintains its enablement state.



NEXT_EDITOR
final public static ActionFactory NEXT_EDITOR(Code)
Workbench action (id "nextEditor"): Next editor. This action maintains its enablement state.

NEXT_EDITOR and PREVIOUS_EDITOR form a cycle action pair. For a given window, use ActionFactory.linkCycleActionPairActionFactory.linkCycleActionPair to connect the two.




NEXT_PART
final public static ActionFactory NEXT_PART(Code)
Workbench action (id "nextPart"): Next part. This action maintains its enablement state.

NEXT_PART and PREVIOUS_PART form a cycle action pair. For a given window, use ActionFactory.linkCycleActionPairActionFactory.linkCycleActionPair to connect the two.




NEXT_PERSPECTIVE
final public static ActionFactory NEXT_PERSPECTIVE(Code)
Workbench action (id "nextPerspective"): Next perspective. This action maintains its enablement state.

NEXT_PERSPECTIVE and PREVIOUS_PERSPECTIVE form a cycle action pair. For a given window, use ActionFactory.linkCycleActionPairActionFactory.linkCycleActionPair to connect the two.




OPEN_NEW_WINDOW
final public static ActionFactory OPEN_NEW_WINDOW(Code)
Workbench action (id "openNewWindow"): Open a new workbench window. This action maintains its enablement state.



OPEN_PERSPECTIVE_DIALOG
final public static ActionFactory OPEN_PERSPECTIVE_DIALOG(Code)
Workbench action (id "openPerspectiveDialog"): Open the Open Perspective dialog. This action is always enabled.
since:
   3.1



PASTE
final public static ActionFactory PASTE(Code)
Workbench action (id "paste"): Paste. This action is a RetargetAction with id "paste". This action maintains its enablement state.



PREFERENCES
final public static ActionFactory PREFERENCES(Code)
Workbench action (id "preferences"): Displays the Preferences dialog. This action maintains its enablement state.



PREVIOUS
final public static ActionFactory PREVIOUS(Code)
Workbench action (id "previous"): Previous. This action is a RetargetAction with id "previous". This action maintains its enablement state.



PREVIOUS_EDITOR
final public static ActionFactory PREVIOUS_EDITOR(Code)
Workbench action (id "previousEditor"): Previous editor. This action maintains its enablement state.

NEXT_EDITOR and PREVIOUS_EDITOR form a cycle action pair. For a given window, use ActionFactory.linkCycleActionPairActionFactory.linkCycleActionPair to connect the two.




PREVIOUS_PART
final public static ActionFactory PREVIOUS_PART(Code)
Workbench action (id "previousPart"): Previous part. This action maintains its enablement state.

NEXT_PART and PREVIOUS_PART form a cycle action pair. For a given window, use ActionFactory.linkCycleActionPairActionFactory.linkCycleActionPair to connect the two.




PREVIOUS_PERSPECTIVE
final public static ActionFactory PREVIOUS_PERSPECTIVE(Code)
Workbench action (id "previousPerspective"): Previous perspective. This action maintains its enablement state.

NEXT_PERSPECTIVE and PREVIOUS_PERSPECTIVE form a cycle action pair. For a given window, use ActionFactory.linkCycleActionPairActionFactory.linkCycleActionPair to connect the two.




PRINT
final public static ActionFactory PRINT(Code)
Workbench action (id "print"): Print. This action is a RetargetAction with id "print". This action maintains its enablement state.



PROPERTIES
final public static ActionFactory PROPERTIES(Code)
Workbench action (id "properties"): Properties. This action is a RetargetAction with id "properties". This action maintains its enablement state.



QUIT
final public static ActionFactory QUIT(Code)
Workbench action (id "quit"): Quit (close the workbench). This action maintains its enablement state.



REDO
final public static ActionFactory REDO(Code)
Workbench action (id "redo"): Redo. This action is a RetargetAction with id "redo". This action maintains its enablement state.



REFRESH
final public static ActionFactory REFRESH(Code)
Workbench action (id "refresh"): Refresh. This action is a RetargetAction with id "refresh". This action maintains its enablement state.



RENAME
final public static ActionFactory RENAME(Code)
Workbench action (id "rename"): Rename. This action is a RetargetAction with id "rename". This action maintains its enablement state.



RESET_PERSPECTIVE
final public static ActionFactory RESET_PERSPECTIVE(Code)
Workbench action (id "resetPerspective"): Resets the current perspective. This action maintains its enablement state.



REVERT
final public static ActionFactory REVERT(Code)
Workbench action (id "revert"): Revert. This action is a RetargetAction with id "revert". This action maintains its enablement state.



SAVE
final public static ActionFactory SAVE(Code)
Workbench action (id "save"): Save the active editor. This action maintains its enablement state.



SAVE_ALL
final public static ActionFactory SAVE_ALL(Code)
Workbench action (id "saveAll"): Save all open editors with unsaved changes. This action maintains its enablement state.



SAVE_AS
final public static ActionFactory SAVE_AS(Code)
Workbench action (id "saveAs"): Save As for the active editor. This action maintains its enablement state.



SAVE_PERSPECTIVE
final public static ActionFactory SAVE_PERSPECTIVE(Code)
Workbench action (id "savePerspective"): Save the current perspective. This action maintains its enablement state.



SELECT_ALL
final public static ActionFactory SELECT_ALL(Code)
Workbench action (id "selectAll"): Select All. This action is a RetargetAction with id "selectAll". This action maintains its enablement state.



SHOW_EDITOR
final public static ActionFactory SHOW_EDITOR(Code)
Workbench action (id "showEditor"): Show/hide the editor area. This action maintains its enablement state.



SHOW_OPEN_EDITORS
final public static ActionFactory SHOW_OPEN_EDITORS(Code)
Workbench action (id "showOpenEditors"): Show a list of open (and recently closed) editors. This action maintains its enablement state.



SHOW_PART_PANE_MENU
final public static ActionFactory SHOW_PART_PANE_MENU(Code)
Workbench action (id "showPartPaneMenu"): Show the part pane menu. This action maintains its enablement state.



SHOW_QUICK_ACCESS
final public static ActionFactory SHOW_QUICK_ACCESS(Code)
Workbench action (id "showQuickAccess"): Shows a list of UI elements like editors, views, perspectives etc.
since:
   3.3



SHOW_VIEW_MENU
final public static ActionFactory SHOW_VIEW_MENU(Code)
Workbench action (id "showViewMenu"): Show the view menu. This action maintains its enablement state.



SHOW_WORKBOOK_EDITORS
final public static ActionFactory SHOW_WORKBOOK_EDITORS(Code)
Workbench action (id "showWorkbookEditors"): Shows a list of open editors in the current or last active workbook.



TOGGLE_COOLBAR
final public static ActionFactory TOGGLE_COOLBAR(Code)
Workbench action (id "toggleCoolbar"): Toggle the visibility of the coolbar and perspective switcher. This will only enable visibility of the coolbar and perspective bar if the window advisor creating the window allowed for their visibility initially.
since:
   3.3



UNDO
final public static ActionFactory UNDO(Code)
Workbench action (id "undo"): Undo. This action is a RetargetAction with id "undo". This action maintains its enablement state.



UP
final public static ActionFactory UP(Code)
Workbench action (id "up"): Up. This action is a RetargetAction with id "up". This action maintains its enablement state.




Constructor Detail
ActionFactory
protected ActionFactory(String actionId)(Code)
Creates a new workbench action factory with the given id.
Parameters:
  actionId - the id of actions created by this action factory




Method Detail
create
abstract public IWorkbenchAction create(IWorkbenchWindow window)(Code)
Creates a new standard action for the given workbench window. The action has an id as specified by the particular factory.

Actions automatically register listeners against the workbench window so that they can keep their enablement state up to date. Ordinarily, the window's references to these listeners will be dropped automatically when the window closes. However, if the client needs to get rid of an action while the window is still open, the client must call IWorkbenchAction.dispose dispose to give the action an opportunity to deregister its listeners and to perform any other cleanup.


Parameters:
  window - the workbench window the workbench action



getId
public String getId()(Code)
Returns the id of this action factory. the id of actions created by this action factory



linkCycleActionPair
public static void linkCycleActionPair(IWorkbenchAction next, IWorkbenchAction previous)(Code)
Establishes bi-direction connections between the forward and backward actions of a cycle pair.

Example usage:

 ActionFactory.IWorkbenchAction nextEditorAction = ActionFactory.NEXT_EDITOR
 .create(window);
 ActionFactory.IWorkbenchAction previousEditorAction = ActionFactory.PREVIOUS_EDITOR
 .create(window);
 ActionFactory.linkCycleActionPair(nextEditorAction, previousEditorAction);
 


Parameters:
  next - the action that moves forward
Parameters:
  previous - the action that moves backward



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.