Java Doc for IToolManager.java in  » GIS » udig-1.1 » net » refractions » udig » project » ui » tool » 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 » GIS » udig 1.1 » net.refractions.udig.project.ui.tool 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


net.refractions.udig.project.ui.tool.IToolManager

All known Subclasses:   net.refractions.udig.project.ui.internal.tool.display.ToolManager,
IToolManager
public interface IToolManager (Code)


Field Summary
final public  StringATTR_CLASS
    
final public  StringATTR_ID
    
final public  StringP_TOOL_MANAGER
     Preference constant that can used to set and look up the default IToolManager.
final public  StringXPID
    


Method Summary
 voidaddToolAction(IAction action)
     Adds an Action that executes a tool to the toolbar.
public  voidcontributeActionTools(IToolBarManager toolBarManager, IActionBars bars)
     Adds action tools contribution items to the toolbar.
 voidcontributeActiveModalTool(IMenuManager manager)
     Contributes items from current active modal tool to the context menu if the modal tool implements IContextMenuContributionTool interface.
 voidcontributeGlobalActions(IWorkbenchPart part, IActionBars bars)
     Contributes the common global actions.
public  voidcontributeModalTools(IToolBarManager toolBarManager, IActionBars bars)
     Adds modal tools contribution items to the toolbar.
 voidcontributeToCoolBar(SubCoolBarManager cbmanager, IActionBars bars)
    
 voidcontributeToMenu(IMenuManager manager)
    
 MenuManagercreateOperationsContextMenu(ISelection selection)
     This allows for customized operation menus that are based on the currently selected tool.
 IActioncreateToolAction(String toolID, String categoryID)
     Creates a action that acts as a proxy for the tool in the editor toolbar.

The client code must set the name image descriptor etc...

 ActionToolCategoryfindActionCategory(String id)
    
 ToolfindTool(String toolID)
     Finds tool proxy and returns the actual tool implementation object.
public  CursorfindToolCursor(String cursorID)
     Searches for the Cursor object by ID.
 ToolCategorygetActiveCategory()
     Returns the tool category that is currently active.
 ToolgetActiveTool()
     Returns current active tool implementation object.
 IActiongetBACKWARD_HISTORYAction()
     Retrieves the backward navigation action that is used by much of the map components such as the MapEditor and the LayersView.
 IActiongetCOPYAction(IWorkbenchPart part)
    
 IActiongetCUTAction(IWorkbenchPart part)
    
 IActiongetDELETEAction()
    
 IActiongetFORWARD_HISTORYAction()
     Retrieves the forward navigation action that is used by much of the map components such as the MapEditor and the LayersView.
 List<ModalToolCategory>getModalToolCategories()
     Returns the list of categories containing modal tools.
 IActiongetPASTEAction(IWorkbenchPart part)
    
 IActiongetREDOAction()
     Retrieves the redo action that is used by much of the map components such as the MapEditor and the LayersView.
 IActiongetTool(String toolID, String categoryID)
     Returns the tool identified by an id and a category.
 IActiongetToolAction(String toolID, String categoryID)
     Returns the tool identified by an id and a category.
 IActiongetUNDOAction()
     Retrieves the undo action that is used by much of the map components such as the MapEditor and the LayersView.
 voidregisterActionsWithPart(IWorkbenchPart part)
    
 voidsetBACKAction(IAction action, IWorkbenchPart part)
    
 voidsetCOPYAction(IAction action, IWorkbenchPart part)
    
 voidsetCUTAction(IAction action, IWorkbenchPart part)
    
 voidsetCurrentEditor(MapEditor editor)
    
 voidsetDELETEAction(IAction action, IWorkbenchPart part)
    
 voidsetFORWARDAction(IAction action, IWorkbenchPart part)
    
 voidsetPASTEAction(IAction action, IWorkbenchPart part)
    
 voidsetREDOAction(IAction action, IWorkbenchPart part)
    
 voidsetUNDOAction(IAction action, IWorkbenchPart part)
    
public  voidunregisterActions(IWorkbenchPart part)
    

Field Detail
ATTR_CLASS
final public String ATTR_CLASS(Code)
Points to class field of extension point attribute



ATTR_ID
final public String ATTR_ID(Code)
Points to id field of extension point attribute



P_TOOL_MANAGER
final public String P_TOOL_MANAGER(Code)
Preference constant that can used to set and look up the default IToolManager. This can be set in plugin_customization.ini with the key "net.refractions.udig.project.ui/toolManager".



XPID
final public String XPID(Code)





Method Detail
addToolAction
void addToolAction(IAction action)(Code)
Adds an Action that executes a tool to the toolbar.
Parameters:
  action -



contributeActionTools
public void contributeActionTools(IToolBarManager toolBarManager, IActionBars bars)(Code)
Adds action tools contribution items to the toolbar.

The actual toolbar UI elements are created and managed by the framework, IToolManager just adds action tools as contributions to the specified IToolBarManager.
Parameters:
  toolManager -
Parameters:
  bars -




contributeActiveModalTool
void contributeActiveModalTool(IMenuManager manager)(Code)
Contributes items from current active modal tool to the context menu if the modal tool implements IContextMenuContributionTool interface.
Parameters:
  manager - a context menu manager from MapEditor.



contributeGlobalActions
void contributeGlobalActions(IWorkbenchPart part, IActionBars bars)(Code)
Contributes the common global actions.
Parameters:
  bars -



contributeModalTools
public void contributeModalTools(IToolBarManager toolBarManager, IActionBars bars)(Code)
Adds modal tools contribution items to the toolbar.

The actual toolbar UI elements are created and managed by the framework, IToolManager just adds action tools as contributions to the specified IToolBarManager.
Parameters:
  toolManager -
Parameters:
  bars -




contributeToCoolBar
void contributeToCoolBar(SubCoolBarManager cbmanager, IActionBars bars)(Code)
Adds both action tools and modal tools to the manager
Parameters:
  cbmanager -
Parameters:
  bars -
See Also:   net.refractions.udig.project.ui.tool.ModalTool
See Also:   net.refractions.udig.project.ui.tool.ActionTool



contributeToMenu
void contributeToMenu(IMenuManager manager)(Code)



createOperationsContextMenu
MenuManager createOperationsContextMenu(ISelection selection)(Code)
This allows for customized operation menus that are based on the currently selected tool.
Parameters:
  selection - the selection to find operations for.



createToolAction
IAction createToolAction(String toolID, String categoryID)(Code)
Creates a action that acts as a proxy for the tool in the editor toolbar.

The client code must set the name image descriptor etc... of the Action


Parameters:
  toolID - the id of the tool
Parameters:
  categoryID - the category the tool is part of a proxy action that can be put in other toolbars



findActionCategory
ActionToolCategory findActionCategory(String id)(Code)



findTool
Tool findTool(String toolID)(Code)
Finds tool proxy and returns the actual tool implementation object. If the tool has not been loaded yet, it is done immediatly by tool proxy and the implementation is returned.
Parameters:
  toolID - the tool ID from extension registry.



findToolCursor
public Cursor findToolCursor(String cursorID)(Code)
Searches for the Cursor object by ID. The cursorID is a custom ID from extension registry or a constant from ModatTool interface for systems cursors.
Parameters:
  cursorID -



getActiveCategory
ToolCategory getActiveCategory()(Code)
Returns the tool category that is currently active. the tool category that is currently active.



getActiveTool
Tool getActiveTool()(Code)
Returns current active tool implementation object.



getBACKWARD_HISTORYAction
IAction getBACKWARD_HISTORYAction()(Code)
Retrieves the backward navigation action that is used by much of the map components such as the MapEditor and the LayersView. Undoes the last Nav command set to the current map.
Parameters:
  part -



getCOPYAction
IAction getCOPYAction(IWorkbenchPart part)(Code)



getCUTAction
IAction getCUTAction(IWorkbenchPart part)(Code)



getDELETEAction
IAction getDELETEAction()(Code)



getFORWARD_HISTORYAction
IAction getFORWARD_HISTORYAction()(Code)
Retrieves the forward navigation action that is used by much of the map components such as the MapEditor and the LayersView. Executes the last undone Nav command on the current map.



getModalToolCategories
List<ModalToolCategory> getModalToolCategories()(Code)
Returns the list of categories containing modal tools. the list of categories containing modal tools.



getPASTEAction
IAction getPASTEAction(IWorkbenchPart part)(Code)



getREDOAction
IAction getREDOAction()(Code)
Retrieves the redo action that is used by much of the map components such as the MapEditor and the LayersView. redoes the last undone command sent to the currently active map.



getTool
IAction getTool(String toolID, String categoryID)(Code)
Returns the tool identified by an id and a category. This action cannot be modified in any way or it will throw an UnsupportedOperationException , but it can be ran with either IAction.run or IAction.runWithEvent(org.eclipse.swt.widgets.Event) .
Parameters:
  toolID - the id of the tool to find
Parameters:
  categoryID - the id of the category the tool is part of the tool identified or null if the tool does not exist.



getToolAction
IAction getToolAction(String toolID, String categoryID)(Code)
Returns the tool identified by an id and a category. This action cannot be modified in any way or it will throw an UnsupportedOperationException , but it can be ran with either IAction.run or IAction.runWithEvent(org.eclipse.swt.widgets.Event) .
Parameters:
  toolID - the id of the tool to find
Parameters:
  categoryID - the id of the category the tool is part of the tool identified or null if the tool does not exist.



getUNDOAction
IAction getUNDOAction()(Code)
Retrieves the undo action that is used by much of the map components such as the MapEditor and the LayersView. Undoes the last command sent to the currently active map.
Parameters:
  part -



registerActionsWithPart
void registerActionsWithPart(IWorkbenchPart part)(Code)
Registers keybindings for tools and cut/paste with the workbench part
Parameters:
  part -



setBACKAction
void setBACKAction(IAction action, IWorkbenchPart part)(Code)



setCOPYAction
void setCOPYAction(IAction action, IWorkbenchPart part)(Code)



setCUTAction
void setCUTAction(IAction action, IWorkbenchPart part)(Code)



setCurrentEditor
void setCurrentEditor(MapEditor editor)(Code)



setDELETEAction
void setDELETEAction(IAction action, IWorkbenchPart part)(Code)



setFORWARDAction
void setFORWARDAction(IAction action, IWorkbenchPart part)(Code)



setPASTEAction
void setPASTEAction(IAction action, IWorkbenchPart part)(Code)



setREDOAction
void setREDOAction(IAction action, IWorkbenchPart part)(Code)



setUNDOAction
void setUNDOAction(IAction action, IWorkbenchPart part)(Code)



unregisterActions
public void unregisterActions(IWorkbenchPart part)(Code)
Unregisters keybindings for tools and cut/paste with the workbench part
Parameters:
  part -



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