public class WorkspaceActionGroup extends ResourceNavigatorActionGroup
navigator| Constructor and Description |
|---|
WorkspaceActionGroup(IResourceNavigator navigator) |
| Modifier and Type | Method and Description |
|---|---|
void |
fillActionBars(IActionBars actionBars)
Adds the applicable actions to a part's action bars,
including setting any global action handlers.
|
void |
fillContextMenu(IMenuManager menu)
Adds the build, open project, close project and refresh resource
actions to the context menu.
|
void |
handleKeyPressed(KeyEvent event)
Handles a key pressed event by invoking the appropriate action.
|
protected void |
makeActions()
Makes the actions contained in this action group.
|
void |
updateActionBars()
Updates the state of the actions added to the action bars,
including any global action handlers,
based on the state of the
ActionContext. |
getImageDescriptor, getNavigator, runDefaultActiondispose, getContext, setContextpublic WorkspaceActionGroup(IResourceNavigator navigator)
public void fillActionBars(IActionBars actionBars)
ActionGroupThe default implementation does nothing. Subclasses may override or extend this method.
fillActionBars in class ActionGroupactionBars - the part's action barspublic void fillContextMenu(IMenuManager menu)
The following conditions apply: build-only projects selected, auto build disabled, at least one builder present open project-only projects selected, at least one closed project close project-only projects selected, at least one open project refresh-no closed project selected
Both the open project and close project action may be on the menu at the same time.
No disabled action should be on the context menu.
fillContextMenu in class ActionGroupmenu - context menu to add actions topublic void handleKeyPressed(KeyEvent event)
handleKeyPressed in class ResourceNavigatorActionGroupprotected void makeActions()
ResourceNavigatorActionGroupmakeActions in class ResourceNavigatorActionGrouppublic void updateActionBars()
ActionGroupActionContext.
The default implementation does nothing. Subclasses may override or extend this method.
updateActionBars in class ActionGroupGuidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.