Method Summary |
|
public void | addToolAction(IAction action) Adds an Action that executes a tool to the toolbar. |
public void | addToolScope(IWorkbenchPartSite site) This method enables the context that allows tool keybinding to work. |
public void | contributeActionTools(IToolBarManager toolBarManager, IActionBars bars) |
public void | contributeActiveModalTool(IMenuManager manager) |
public void | contributeGlobalActions(IWorkbenchPart part, IActionBars bars) Contributes the common global actions. |
public void | contributeModalTools(IToolBarManager toolBarManager, IActionBars bars) |
public void | contributeToCoolBar(SubCoolBarManager cbmanager, IActionBars bars) |
public void | contributeToMenu(IMenuManager manager) |
public MenuManager | createOperationsContextMenu(ISelection selection) |
public IAction | createToolAction(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... |
void | dispose() |
public ActionToolCategory | findActionCategory(String id) |
MenuToolCategory | findMenuCategory(String id) |
protected ModalToolCategory | findModalCategory(String id) |
public Tool | findTool(String toolID) In the current implementation finds only among modal tools. |
public Cursor | findToolCursor(String cursorID) Finds cursor proxy by ID in cache. |
SubActionBars2 | getActionBars() |
public ToolCategory | getActiveCategory() Returns the tool category that is currently active. |
public Tool | getActiveTool() |
public List<ActionToolCategory> | getActiveToolCategories() |
protected ToolProxy | getActiveToolProxy() Returns active tool proxy object. |
public IAction | getBACKWARD_HISTORYAction() Retrieves the backward navigation action that is used by much of the map components such as
the MapEditor and the LayersView. |
public IAction | getCOPYAction(IWorkbenchPart part) |
public IAction | getCUTAction(IWorkbenchPart part) |
Adapter | getCommandListener(MapEditor editor) |
public synchronized IAction | getDELETEAction() |
public IAction | getFORWARD_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 IAction | getPASTEAction(IWorkbenchPart part) |
public IAction | getREDOAction() Retrieves the redo action that is used by much of the map components such as the MapEditor
and the LayersView. |
public IAction | getTool(String toolID, String categoryID) |
public IAction | getToolAction(String toolID, String categoryID) |
public IAction | getUNDOAction() Retrieves the undo action that is used by much of the map components such as the MapEditor
and the LayersView. |
public void | registerActionsWithPart(IWorkbenchPart part) |
void | setActiveTool(MapEditor editor) Sets the context of the currently active tool and ensures that all tools are enabled. |
public void | setBACKAction(IAction action, IWorkbenchPart part) |
public void | setCOPYAction(IAction action, IWorkbenchPart part) |
public void | setCUTAction(IAction action, IWorkbenchPart part) |
void | setCommandActions(Map map, MapEditor editor) |
public void | setCurrentEditor(MapEditor editor) This method is called to perform tools initialization when
the map editor is selected. |
public synchronized void | setDELETEAction(IAction action, IWorkbenchPart part) |
public void | setFORWARDAction(IAction action, IWorkbenchPart part) |
public void | setPASTEAction(IAction action, IWorkbenchPart part) |
public void | setREDOAction(IAction action, IWorkbenchPart part) |
public void | setUNDOAction(IAction action, IWorkbenchPart part) |
public void | unregisterActions(IWorkbenchPart part) |