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


java.lang.Object
   net.refractions.udig.project.ui.internal.tool.display.ToolManager

ToolManager
public class ToolManager implements IToolManager(Code)
Manages Edit tools activation and registration.
author:
   jeichar
since:
   0.6.0

Inner Class :class EditManagerListener implements IEditManagerListener
Inner Class :static class CopyAction extends Action
Inner Class :static class PasteAction extends Action

Field Summary
 List<ActionToolCategory>actionCategories
    
protected  ToolProxyactiveModalToolProxy
     Current active tool.
 List<ToolProxy>backgroundTools
    
 LockbackwardLock
    
protected  List<String>categoryIds
    
 LockcopyLock
    
 MapEditorcurrentEditor
    
protected  java.util.Map<String, CursorProxy>cursorsCache
     Cache of all configured cursors.
 LockcutLock
    
 ToolProxydefaultModalToolProxy
     Default modal tool.
 LockdeleteLock
    
 LockforwardLock
    
 List<MenuToolCategory>menuCategories
    
 List<ModalToolCategory>modalCategories
    
 LockpasteLock
    
 LockredoLock
    
 Set<IAction>registeredToolActions
     This is a list of all tool actions(buttons) that are not part of the editor toolbar.
 EditManagerListenerselectedLayerListener
    
 ISharedImagessharedImages
    
 LockundoLock
    

Constructor Summary
public  ToolManager()
     Construct ToolManager.

Method Summary
public  voidaddToolAction(IAction action)
     Adds an Action that executes a tool to the toolbar.
public  voidaddToolScope(IWorkbenchPartSite site)
     This method enables the context that allows tool keybinding to work.
public  voidcontributeActionTools(IToolBarManager toolBarManager, IActionBars bars)
    
public  voidcontributeActiveModalTool(IMenuManager manager)
    
public  voidcontributeGlobalActions(IWorkbenchPart part, IActionBars bars)
     Contributes the common global actions.
public  voidcontributeModalTools(IToolBarManager toolBarManager, IActionBars bars)
    
public  voidcontributeToCoolBar(SubCoolBarManager cbmanager, IActionBars bars)
    
public  voidcontributeToMenu(IMenuManager manager)
    
public  MenuManagercreateOperationsContextMenu(ISelection selection)
    
public  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...

 voiddispose()
    
public  ActionToolCategoryfindActionCategory(String id)
    
 MenuToolCategoryfindMenuCategory(String id)
    
protected  ModalToolCategoryfindModalCategory(String id)
    
public  ToolfindTool(String toolID)
     In the current implementation finds only among modal tools.
public  CursorfindToolCursor(String cursorID)
     Finds cursor proxy by ID in cache.
 SubActionBars2getActionBars()
    
public  ToolCategorygetActiveCategory()
     Returns the tool category that is currently active.
public  ToolgetActiveTool()
    
public  List<ActionToolCategory>getActiveToolCategories()
    
protected  ToolProxygetActiveToolProxy()
     Returns active tool proxy object.
public  IActiongetBACKWARD_HISTORYAction()
     Retrieves the backward navigation action that is used by much of the map components such as the MapEditor and the LayersView.
public  IActiongetCOPYAction(IWorkbenchPart part)
    
public  IActiongetCUTAction(IWorkbenchPart part)
    
 AdaptergetCommandListener(MapEditor editor)
    
public synchronized  IActiongetDELETEAction()
    
public  IActiongetFORWARD_HISTORYAction()
     Retrieves the forward navigation action that is used by much of the map components such as the MapEditor and the LayersView.
public  List<ModalToolCategory>getModalToolCategories()
     Returns the list of categories containing modal tools.
public  IActiongetPASTEAction(IWorkbenchPart part)
    
public  IActiongetREDOAction()
     Retrieves the redo action that is used by much of the map components such as the MapEditor and the LayersView.
public  IActiongetTool(String toolID, String categoryID)
    
public  IActiongetToolAction(String toolID, String categoryID)
    
public  IActiongetUNDOAction()
     Retrieves the undo action that is used by much of the map components such as the MapEditor and the LayersView.
public  voidregisterActionsWithPart(IWorkbenchPart part)
    
 voidsetActiveTool(MapEditor editor)
     Sets the context of the currently active tool and ensures that all tools are enabled.
public  voidsetBACKAction(IAction action, IWorkbenchPart part)
    
public  voidsetCOPYAction(IAction action, IWorkbenchPart part)
    
public  voidsetCUTAction(IAction action, IWorkbenchPart part)
    
 voidsetCommandActions(Map map, MapEditor editor)
    
public  voidsetCurrentEditor(MapEditor editor)
     This method is called to perform tools initialization when the map editor is selected.
public synchronized  voidsetDELETEAction(IAction action, IWorkbenchPart part)
    
public  voidsetFORWARDAction(IAction action, IWorkbenchPart part)
    
public  voidsetPASTEAction(IAction action, IWorkbenchPart part)
    
public  voidsetREDOAction(IAction action, IWorkbenchPart part)
    
public  voidsetUNDOAction(IAction action, IWorkbenchPart part)
    
public  voidunregisterActions(IWorkbenchPart part)
    

Field Detail
actionCategories
List<ActionToolCategory> actionCategories(Code)



activeModalToolProxy
protected ToolProxy activeModalToolProxy(Code)
Current active tool.



backgroundTools
List<ToolProxy> backgroundTools(Code)



backwardLock
Lock backwardLock(Code)



categoryIds
protected List<String> categoryIds(Code)



copyLock
Lock copyLock(Code)



currentEditor
MapEditor currentEditor(Code)



cursorsCache
protected java.util.Map<String, CursorProxy> cursorsCache(Code)
Cache of all configured cursors.



cutLock
Lock cutLock(Code)



defaultModalToolProxy
ToolProxy defaultModalToolProxy(Code)
Default modal tool. This tool is set during initialization of tools by ToolProxy.DEFAULT_ID.



deleteLock
Lock deleteLock(Code)



forwardLock
Lock forwardLock(Code)



menuCategories
List<MenuToolCategory> menuCategories(Code)



modalCategories
List<ModalToolCategory> modalCategories(Code)



pasteLock
Lock pasteLock(Code)



redoLock
Lock redoLock(Code)



registeredToolActions
Set<IAction> registeredToolActions(Code)
This is a list of all tool actions(buttons) that are not part of the editor toolbar. For example the info view may have a tool as part of its toolbar which is a proxy for the real tool on the editor view.



selectedLayerListener
EditManagerListener selectedLayerListener(Code)



sharedImages
ISharedImages sharedImages(Code)



undoLock
Lock undoLock(Code)




Constructor Detail
ToolManager
public ToolManager()(Code)
Construct ToolManager.




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



addToolScope
public void addToolScope(IWorkbenchPartSite site)(Code)
This method enables the context that allows tool keybinding to work.
Parameters:
  site -



contributeActionTools
public void contributeActionTools(IToolBarManager toolBarManager, IActionBars bars)(Code)



contributeActiveModalTool
public void contributeActiveModalTool(IMenuManager manager)(Code)
(non-Javadoc)
See Also:   net.refractions.udig.project.ui.tool.IToolManager.contributeActiveModalTool(org.eclipse.jface.action.IMenuManager)



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



contributeModalTools
public void contributeModalTools(IToolBarManager toolBarManager, IActionBars bars)(Code)



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



contributeToMenu
public void contributeToMenu(IMenuManager manager)(Code)



createOperationsContextMenu
public MenuManager createOperationsContextMenu(ISelection selection)(Code)



createToolAction
public 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



dispose
void dispose()(Code)



findActionCategory
public ActionToolCategory findActionCategory(String id)(Code)



findMenuCategory
MenuToolCategory findMenuCategory(String id)(Code)



findModalCategory
protected ModalToolCategory findModalCategory(String id)(Code)



findTool
public Tool findTool(String toolID)(Code)
In the current implementation finds only among modal tools. TODO Add necessary functionality



findToolCursor
public Cursor findToolCursor(String cursorID)(Code)
Finds cursor proxy by ID in cache.



getActionBars
SubActionBars2 getActionBars()(Code)



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



getActiveTool
public Tool getActiveTool()(Code)
(non-Javadoc)
See Also:   net.refractions.udig.project.ui.tool.IToolManager.getActiveTool



getActiveToolCategories
public List<ActionToolCategory> getActiveToolCategories()(Code)



getActiveToolProxy
protected ToolProxy getActiveToolProxy()(Code)
Returns active tool proxy object.



getBACKWARD_HISTORYAction
public 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
public IAction getCOPYAction(IWorkbenchPart part)(Code)



getCUTAction
public IAction getCUTAction(IWorkbenchPart part)(Code)



getCommandListener
Adapter getCommandListener(MapEditor editor)(Code)



getDELETEAction
public synchronized IAction getDELETEAction()(Code)



getFORWARD_HISTORYAction
public 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
public List<ModalToolCategory> getModalToolCategories()(Code)
Returns the list of categories containing modal tools. the list of categories containing modal tools.



getPASTEAction
public IAction getPASTEAction(IWorkbenchPart part)(Code)



getREDOAction
public 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
public IAction getTool(String toolID, String categoryID)(Code)



getToolAction
public IAction getToolAction(String toolID, String categoryID)(Code)



getUNDOAction
public 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
public void registerActionsWithPart(IWorkbenchPart part)(Code)



setActiveTool
void setActiveTool(MapEditor editor)(Code)
Sets the context of the currently active tool and ensures that all tools are enabled. This is a small hack so that tools are active even when the editor is not in focus.
Parameters:
  editor -



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



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



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



setCommandActions
void setCommandActions(Map map, MapEditor editor)(Code)



setCurrentEditor
public void setCurrentEditor(MapEditor editor)(Code)
This method is called to perform tools initialization when the map editor is selected.



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



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



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



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



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



unregisterActions
public void unregisterActions(IWorkbenchPart part)(Code)



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)

ww_w__.j__ava__2_s.c___o_m__ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.