| package org.eclipse.ui.internal; |
| |
| /* |
| * (c) Copyright IBM Corp. 2000, 2001. |
| * All Rights Reserved. |
| */ |
| |
| import org.eclipse.jface.action.*; |
| import org.eclipse.ui.IActionBars; |
| |
| public class WWinActionBars implements IActionBars { |
| private WorkbenchWindow window; |
| /** |
| * PerspActionBars constructor comment. |
| */ |
| public WWinActionBars(WorkbenchWindow window) { |
| super(); |
| this.window = window; |
| } |
| /** |
| * Clears the global action handler list. |
| */ |
| public void clearGlobalActionHandlers() { |
| } |
| /** |
| * Get the handler for a window action. |
| * |
| * @param actionID an action ID declared in the registry |
| * @return an action handler which implements the action ID, or |
| * <code>null</code> if none is registered. |
| */ |
| public IAction getGlobalActionHandler(String actionID) { |
| return null; |
| } |
| /** |
| * Returns the menu manager. If items are added or |
| * removed from the manager be sure to call <code>updateActionBars</code>. |
| * |
| * @return the menu manager |
| */ |
| public IMenuManager getMenuManager() { |
| return window.getMenuManager(); |
| } |
| /** |
| * Returns the status line manager. If items are added or |
| * removed from the manager be sure to call <code>updateActionBars</code>. |
| * |
| * @return the status line manager |
| */ |
| public IStatusLineManager getStatusLineManager() { |
| return window.getStatusLineManager(); |
| } |
| /** |
| * Returns the tool bar manager. If items are added or |
| * removed from the manager be sure to call <code>updateActionBars</code>. |
| * |
| * @return the tool bar manager |
| */ |
| public IToolBarManager getToolBarManager() { |
| return window.getCoolBarManager(); |
| } |
| /** |
| * Add a handler for a window action. |
| * |
| * The standard action ID's for the workbench are defined in |
| * <code>IWorkbenchActions</code>. |
| * |
| * @see IWorkbenchActions |
| * |
| * @param actionID an action ID declared in the registry |
| * @param handler an action which implements the action ID. |
| * <code>null</code> may be passed to deregister a handler. |
| */ |
| public void setGlobalActionHandler(String actionID, IAction handler) { |
| } |
| /** |
| * Commits all UI changes. This should be called |
| * after additions or subtractions have been made to a |
| * menu, status line, or toolbar. |
| */ |
| public void updateActionBars() { |
| window.updateActionBars(); |
| } |
| } |