org.eclipse.cdt.internal.ui.cview
Class CViewActionGroup

java.lang.Object
  extended by org.eclipse.ui.actions.ActionGroup
      extended by org.eclipse.cdt.internal.ui.cview.CViewActionGroup
Direct Known Subclasses:
BuildGroup, GotoActionGroup, MainActionGroup, OpenFileGroup, OpenProjectGroup, RefactorActionGroup

public abstract class CViewActionGroup
extends org.eclipse.ui.actions.ActionGroup

This is the action group for all the view actions. It delegates to several subgroups for most of the actions.

See Also:
GotoActionGroup, OpenFileGroup, RefactorActionGroup, SortAndFilterActionGroup, WorkspaceActionGroup

Constructor Summary
CViewActionGroup(CView cview)
          Constructs a new navigator action group and creates its actions.
 
Method Summary
abstract  void fillActionBars(org.eclipse.ui.IActionBars actionBars)
           
abstract  void fillContextMenu(org.eclipse.jface.action.IMenuManager menu)
          Called when the context menu is about to open.
 CView getCView()
          Returns the resource navigator.
 void handleKeyPressed(org.eclipse.swt.events.KeyEvent event)
          Handles a key pressed event by invoking the appropriate action.
 void handleKeyReleased(org.eclipse.swt.events.KeyEvent event)
          Handles a key released event by invoking the appropriate action.
 void restoreFilterAndSorterState(org.eclipse.ui.IMemento memento)
           
 void runDefaultAction(org.eclipse.jface.viewers.IStructuredSelection selection)
          Runs the default action in the group.
 void saveFilterAndSorterState(org.eclipse.ui.IMemento memento)
           
abstract  void updateActionBars()
           
 
Methods inherited from class org.eclipse.ui.actions.ActionGroup
dispose, getContext, setContext
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CViewActionGroup

public CViewActionGroup(CView cview)
Constructs a new navigator action group and creates its actions.

Parameters:
cview - the CView
Method Detail

getCView

public CView getCView()
Returns the resource navigator.


handleKeyPressed

public void handleKeyPressed(org.eclipse.swt.events.KeyEvent event)
Handles a key pressed event by invoking the appropriate action. Does nothing by default.


handleKeyReleased

public void handleKeyReleased(org.eclipse.swt.events.KeyEvent event)
Handles a key released event by invoking the appropriate action. Does nothing by default.


fillContextMenu

public abstract void fillContextMenu(org.eclipse.jface.action.IMenuManager menu)
Called when the context menu is about to open. Override to add your own context dependent menu contributions.

Overrides:
fillContextMenu in class org.eclipse.ui.actions.ActionGroup

fillActionBars

public abstract void fillActionBars(org.eclipse.ui.IActionBars actionBars)
Overrides:
fillActionBars in class org.eclipse.ui.actions.ActionGroup

updateActionBars

public abstract void updateActionBars()
Overrides:
updateActionBars in class org.eclipse.ui.actions.ActionGroup

runDefaultAction

public void runDefaultAction(org.eclipse.jface.viewers.IStructuredSelection selection)
Runs the default action in the group. Does nothing by default.

Parameters:
selection - the current selection

restoreFilterAndSorterState

public void restoreFilterAndSorterState(org.eclipse.ui.IMemento memento)

saveFilterAndSorterState

public void saveFilterAndSorterState(org.eclipse.ui.IMemento memento)