Package org.eclipse.jdt.ui.actions
Class GenerateActionGroup
java.lang.Object
org.eclipse.ui.actions.ActionGroup
org.eclipse.jdt.ui.actions.GenerateActionGroup
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:
- 2.0
- Restriction:
- This class is not intended to be subclassed by clients.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Pop-up menu: id of the code group of the source sub menu (valuecodeGroup
).static final String
Pop-up menu: id of the generate group of the source sub menu (valuegenerateGroup
).static final String
Pop-up menu: id of the import group of the source sub menu (valueimportGroup
).static final String
Pop-up menu: id of the source sub menu (valueorg.eclipse.jdt.ui.source.menu
). -
Constructor Summary
ConstructorsConstructorDescriptionGenerateActionGroup
(org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor editor, String groupName) Note: This constructor is for internal use only.GenerateActionGroup
(IViewPart part) Creates a newGenerateActionGroup
.GenerateActionGroup
(IWorkbenchSite site, ISelectionProvider selectionProvider) Creates a newGenerateActionGroup
.GenerateActionGroup
(Page page) Creates a newGenerateActionGroup
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
void
Deprecated.As of 3.5, this method is no longer calledvoid
fillActionBars
(IActionBars actionBar) void
fillContextMenu
(IMenuManager menu) Methods inherited from class org.eclipse.ui.actions.ActionGroup
getContext, setContext, updateActionBars
-
Field Details
-
MENU_ID
Pop-up menu: id of the source sub menu (valueorg.eclipse.jdt.ui.source.menu
).- Since:
- 3.0
- See Also:
-
GROUP_IMPORT
Pop-up menu: id of the import group of the source sub menu (valueimportGroup
).- Since:
- 3.0
- See Also:
-
GROUP_GENERATE
Pop-up menu: id of the generate group of the source sub menu (valuegenerateGroup
).- Since:
- 3.0
- See Also:
-
GROUP_CODE
Pop-up menu: id of the code group of the source sub menu (valuecodeGroup
).- Since:
- 3.0
- See Also:
-
-
Constructor Details
-
GenerateActionGroup
public GenerateActionGroup(org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor editor, String groupName) Note: This constructor is for internal use only. Clients should not call this constructor.- Parameters:
editor
- the compilation unit editorgroupName
- the group name to add the action to- Restriction:
- This constructor is not intended to be referenced by clients.
-
GenerateActionGroup
Creates a newGenerateActionGroup
. The group requires that the selection provided by the page's selection provider is of typeorg.eclipse.jface.viewers.IStructuredSelection
.- Parameters:
page
- the page that owns this action group
-
GenerateActionGroup
Creates a newGenerateActionGroup
. The group requires that the selection provided by the part's selection provider is of typeorg.eclipse.jface.viewers.IStructuredSelection
.- Parameters:
part
- the view part that owns this action group
-
GenerateActionGroup
Creates a newGenerateActionGroup
. The group requires that the selection provided by the given selection provider is of typeIStructuredSelection
.- Parameters:
site
- the site that will own the action group.selectionProvider
- the selection provider used instead of the page selection provider.- Since:
- 3.4
-
-
Method Details
-
editorStateChanged
Deprecated.As of 3.5, this method is no longer calledNote: This method is for internal use only. Clients should not call this method.- Restriction:
- This method is not intended to be referenced by clients.
-
fillActionBars
- Overrides:
fillActionBars
in classActionGroup
-
fillContextMenu
- Overrides:
fillContextMenu
in classActionGroup
-
dispose
public void dispose()- Overrides:
dispose
in classActionGroup
-