org.eclipse.cdt.ui.actions
Class GenerateActionGroup

java.lang.Object
  extended by org.eclipse.ui.actions.ActionGroup
      extended by org.eclipse.cdt.ui.actions.GenerateActionGroup

public class GenerateActionGroup
extends org.eclipse.ui.actions.ActionGroup

Action group that adds the source and generate actions to a part's context menu and installs handlers for the corresponding global menu actions.

This class may be instantiated; it is not intended to be subclassed.

Since:
4.0

Field Summary
static java.lang.String GROUP_CODE
          Pop-up menu: id of the code group of the source sub menu (value codeGroup).
static java.lang.String GROUP_GENERATE
          Pop-up menu: id of the generate group of the source sub menu (value generateGroup).
static java.lang.String GROUP_ORGANIZE
          Pop-up menu: id of the organize group of the source sub menu (value organizeGroup).
static java.lang.String MENU_ID
          Pop-up menu: id of the source sub menu (value org.eclipse.cdt.ui.source.menu).
 
Constructor Summary
GenerateActionGroup(CEditor editor, java.lang.String groupName)
          Note: This constructor is for internal use only.
GenerateActionGroup(org.eclipse.ui.IViewPart part)
          Creates a new GenerateActionGroup.
GenerateActionGroup(org.eclipse.ui.part.Page page)
          Creates a new GenerateActionGroup.
 
Method Summary
 void dispose()
           
 void editorStateChanged()
          Note: This method is for internal use only.
 void fillActionBars(org.eclipse.ui.IActionBars actionBar)
           
 void fillContextMenu(org.eclipse.jface.action.IMenuManager menu)
           
 
Methods inherited from class org.eclipse.ui.actions.ActionGroup
getContext, setContext, updateActionBars
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MENU_ID

public static final java.lang.String MENU_ID
Pop-up menu: id of the source sub menu (value org.eclipse.cdt.ui.source.menu).

See Also:
Constant Field Values

GROUP_ORGANIZE

public static final java.lang.String GROUP_ORGANIZE
Pop-up menu: id of the organize group of the source sub menu (value organizeGroup).

See Also:
Constant Field Values

GROUP_GENERATE

public static final java.lang.String GROUP_GENERATE
Pop-up menu: id of the generate group of the source sub menu (value generateGroup).

See Also:
Constant Field Values

GROUP_CODE

public static final java.lang.String GROUP_CODE
Pop-up menu: id of the code group of the source sub menu (value codeGroup).

See Also:
Constant Field Values
Constructor Detail

GenerateActionGroup

public GenerateActionGroup(CEditor editor,
                           java.lang.String groupName)
Note: This constructor is for internal use only. Clients should not call this constructor.

Parameters:
editor - the C editor
groupName - the group name to add the action to

GenerateActionGroup

public GenerateActionGroup(org.eclipse.ui.part.Page page)
Creates a new GenerateActionGroup. The group requires that the selection provided by the page's selection provider is of type org.eclipse.jface.viewers.IStructuredSelection.

Parameters:
page - the page that owns this action group

GenerateActionGroup

public GenerateActionGroup(org.eclipse.ui.IViewPart part)
Creates a new GenerateActionGroup. The group requires that the selection provided by the part's selection provider is of type org.eclipse.jface.viewers.IStructuredSelection.

Parameters:
part - the view part that owns this action group
Method Detail

editorStateChanged

public void editorStateChanged()
Note: This method is for internal use only. Clients should not call this method.


fillActionBars

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

fillContextMenu

public void fillContextMenu(org.eclipse.jface.action.IMenuManager menu)
Overrides:
fillContextMenu in class org.eclipse.ui.actions.ActionGroup

dispose

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