Package org.eclipse.ui.internal
Class WWinActionBars
java.lang.Object
org.eclipse.ui.internal.WWinActionBars
- All Implemented Interfaces:
IActionBars,IActionBars2
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidClears the global action handler list.Returns the cool bar manager.getGlobalActionHandler(String actionID) Get the handler for a window action.Returns the menu manager.final IServiceLocatorReturns the service locator for these action bars.Returns the status line manager.Returns the tool bar manager.voidsetGlobalActionHandler(String actionID, IAction handler) Add a handler for a window action.voidCommits all UI changes.
-
Constructor Details
-
WWinActionBars
PerspActionBars constructor comment.
-
-
Method Details
-
clearGlobalActionHandlers
public void clearGlobalActionHandlers()Clears the global action handler list.- Specified by:
clearGlobalActionHandlersin interfaceIActionBars
-
getCoolBarManager
Returns the cool bar manager.- Specified by:
getCoolBarManagerin interfaceIActionBars2- Returns:
- the cool bar manager.
-
getGlobalActionHandler
Get the handler for a window action.- Specified by:
getGlobalActionHandlerin interfaceIActionBars- Parameters:
actionID- an action ID declared in the registry- Returns:
- an action handler which implements the action ID, or
nullif none is registered. - See Also:
-
getMenuManager
Returns the menu manager. If items are added or removed from the manager be sure to callupdateActionBars.- Specified by:
getMenuManagerin interfaceIActionBars- Returns:
- the menu manager
-
getServiceLocator
Description copied from interface:IActionBarsReturns the service locator for these action bars. The locator is found by looking locally, and then ascending the action bar hierarchy.- Specified by:
getServiceLocatorin interfaceIActionBars- Returns:
- The service locator; never
null.
-
getStatusLineManager
Returns the status line manager. If items are added or removed from the manager be sure to callupdateActionBars.- Specified by:
getStatusLineManagerin interfaceIActionBars- Returns:
- the status line manager
-
getToolBarManager
Returns the tool bar manager.- Specified by:
getToolBarManagerin interfaceIActionBars- Returns:
- the tool bar manager
-
setGlobalActionHandler
Add a handler for a window action. The standard action ID's for the workbench are defined inIWorkbenchActionConstants.- Specified by:
setGlobalActionHandlerin interfaceIActionBars- Parameters:
actionID- an action ID declared in the registryhandler- an action which implements the action ID.nullmay be passed to deregister a handler.- See Also:
-
updateActionBars
public void updateActionBars()Commits all UI changes. This should be called after additions or subtractions have been made to a menu, status line, or toolbar.- Specified by:
updateActionBarsin interfaceIActionBars- See Also:
-