Eclipse Platform
2.0

org.eclipse.ui.views.navigator
Class WorkspaceActionGroup

java.lang.Object
  |
  +--org.eclipse.ui.actions.ActionGroup
        |
        +--org.eclipse.ui.views.navigator.ResourceNavigatorActionGroup
              |
              +--org.eclipse.ui.views.navigator.WorkspaceActionGroup

public class WorkspaceActionGroup
extends ResourceNavigatorActionGroup

This is the action group for workspace actions such as Build, Refresh Local, and Open/Close Project.


Field Summary
 
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 applicable actions to a context menu, based on the state of the ActionContext.
 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
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

WorkspaceActionGroup

public WorkspaceActionGroup(IResourceNavigator navigator)
Method Detail

makeActions

protected void makeActions()
Description copied from class: ResourceNavigatorActionGroup
Makes the actions contained in this action group.

Specified by:
makeActions in class ResourceNavigatorActionGroup

fillContextMenu

public void fillContextMenu(IMenuManager menu)
Description copied from class: ActionGroup
Adds the applicable actions to a context menu, based on the state of the ActionContext.

The default implementation does nothing. Subclasses may override or extend this method.

Overrides:
fillContextMenu in class ActionGroup
Parameters:
menu - the context menu manager

fillActionBars

public void fillActionBars(IActionBars actionBars)
Description copied from class: ActionGroup
Adds the applicable actions to a part's action bars, including setting any global action handlers.

The default implementation does nothing. Subclasses may override or extend this method.

Overrides:
fillActionBars in class ActionGroup
Parameters:
actionBars - the part's action bars

updateActionBars

public void updateActionBars()
Description copied from class: ActionGroup
Updates the state of the actions added to the action bars, including any global action handlers, based on the state of the ActionContext.

The default implementation does nothing. Subclasses may override or extend this method.

Overrides:
updateActionBars in class ActionGroup

handleKeyPressed

public void handleKeyPressed(KeyEvent event)
Handles a key pressed event by invoking the appropriate action.

Overrides:
handleKeyPressed in class ResourceNavigatorActionGroup

dispose

public void dispose()
Description copied from class: ActionGroup
This method is called by the user of an action group to signal that the group is no longer needed. Subclasses typically implement this method to deregister any listeners or to free other resources.

The default implementation calls setContext(null). Subclasses may extend this method.

Overrides:
dispose in class ActionGroup

Eclipse Platform
2.0

Copyright (c) IBM Corp. and others 2000, 2002. All Rights Reserved.