org.eclipse.cdt.internal.ui.cview
Class OpenProjectGroup
java.lang.Object
org.eclipse.ui.actions.ActionGroup
org.eclipse.cdt.internal.ui.cview.CViewActionGroup
org.eclipse.cdt.internal.ui.cview.OpenProjectGroup
public class OpenProjectGroup
- extends CViewActionGroup
This is the action group for actions such as Refresh Local, and Open/Close
Project.
Method Summary |
void |
dispose()
|
void |
fillActionBars(org.eclipse.ui.IActionBars actionBars)
|
void |
fillContextMenu(org.eclipse.jface.action.IMenuManager menu)
Adds the open project, close project and refresh resource actions to the
context menu. |
void |
handleKeyPressed(org.eclipse.swt.events.KeyEvent event)
Handles a key pressed event by invoking the appropriate action. |
void |
updateActionBars()
|
Methods inherited from class org.eclipse.ui.actions.ActionGroup |
getContext, setContext |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OpenProjectGroup
public OpenProjectGroup(CView cview)
fillActionBars
public void fillActionBars(org.eclipse.ui.IActionBars actionBars)
- Specified by:
fillActionBars
in class CViewActionGroup
fillContextMenu
public void fillContextMenu(org.eclipse.jface.action.IMenuManager menu)
- Adds the open project, close project and refresh resource actions to the
context menu.
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.
- Specified by:
fillContextMenu
in class CViewActionGroup
- Parameters:
menu
- context menu to add actions to
handleKeyPressed
public void handleKeyPressed(org.eclipse.swt.events.KeyEvent event)
- Handles a key pressed event by invoking the appropriate action.
- Overrides:
handleKeyPressed
in class CViewActionGroup
updateActionBars
public void updateActionBars()
- Specified by:
updateActionBars
in class CViewActionGroup
dispose
public void dispose()
- Overrides:
dispose
in class org.eclipse.ui.actions.ActionGroup