Package org.eclipse.ui.internal
Class WWinActionBars
java.lang.Object
org.eclipse.ui.internal.WWinActionBars
- All Implemented Interfaces:
IActionBars
,IActionBars2
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Clears 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 IServiceLocator
Returns the service locator for these action bars.Returns the status line manager.Returns the tool bar manager.void
setGlobalActionHandler
(String actionID, IAction handler) Add a handler for a window action.void
Commits all UI changes.
-
Constructor Details
-
WWinActionBars
PerspActionBars constructor comment.
-
-
Method Details
-
clearGlobalActionHandlers
public void clearGlobalActionHandlers()Clears the global action handler list.- Specified by:
clearGlobalActionHandlers
in interfaceIActionBars
-
getCoolBarManager
Returns the cool bar manager.- Specified by:
getCoolBarManager
in interfaceIActionBars2
- Returns:
- the cool bar manager.
-
getGlobalActionHandler
Get the handler for a window action.- Specified by:
getGlobalActionHandler
in interfaceIActionBars
- Parameters:
actionID
- an action ID declared in the registry- Returns:
- an action handler which implements the action ID, or
null
if 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:
getMenuManager
in interfaceIActionBars
- Returns:
- the menu manager
-
getServiceLocator
Description copied from interface:IActionBars
Returns the service locator for these action bars. The locator is found by looking locally, and then ascending the action bar hierarchy.- Specified by:
getServiceLocator
in 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:
getStatusLineManager
in interfaceIActionBars
- Returns:
- the status line manager
-
getToolBarManager
Returns the tool bar manager.- Specified by:
getToolBarManager
in 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:
setGlobalActionHandler
in interfaceIActionBars
- Parameters:
actionID
- an action ID declared in the registryhandler
- an action which implements the action ID.null
may 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:
updateActionBars
in interfaceIActionBars
- See Also:
-