|
Eclipse Platform 2.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.eclipse.ui.actions.ActionGroup | +--org.eclipse.ui.views.navigator.ResourceNavigatorActionGroup | +--org.eclipse.ui.views.navigator.WorkspaceActionGroup
This is the action group for workspace actions such as Build, Refresh Local, and Open/Close Project.
Fields inherited from class org.eclipse.ui.views.navigator.ResourceNavigatorActionGroup |
navigator |
Constructor Summary | |
WorkspaceActionGroup(IResourceNavigator navigator)
|
Method Summary | |
void |
dispose()
This method is called by the user of an action group to signal that the group is no longer needed. |
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 . |
Methods inherited from class org.eclipse.ui.views.navigator.ResourceNavigatorActionGroup |
getImageDescriptor, getNavigator, runDefaultAction |
Methods inherited from class org.eclipse.ui.actions.ActionGroup |
getContext, setContext |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public WorkspaceActionGroup(IResourceNavigator navigator)
Method Detail |
public void dispose()
ActionGroup
The default implementation calls setContext(null)
.
Subclasses may extend this method.
dispose
in class ActionGroup
public void fillActionBars(IActionBars actionBars)
ActionGroup
The default implementation does nothing. Subclasses may override or extend this method.
fillActionBars
in class ActionGroup
org.eclipse.ui.actions.ActionGroup
actionBars
- 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 ActionGroup
menu
- context menu to add actions topublic void handleKeyPressed(KeyEvent event)
handleKeyPressed
in class ResourceNavigatorActionGroup
protected void makeActions()
ResourceNavigatorActionGroup
makeActions
in class ResourceNavigatorActionGroup
public void updateActionBars()
ActionGroup
ActionContext
.
The default implementation does nothing. Subclasses may override or extend this method.
updateActionBars
in class ActionGroup
|
Eclipse Platform 2.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |