public class GenerateActionGroup extends ActionGroup
This class may be instantiated; it is not intended to be subclassed.
Modifier and Type | Field and Description |
---|---|
static String |
GROUP_CODE
Pop-up menu: id of the code group of the source sub menu (value
codeGroup ). |
static String |
GROUP_GENERATE
Pop-up menu: id of the generate group of the source sub menu (value
generateGroup ). |
static String |
GROUP_IMPORT
Pop-up menu: id of the import group of the source sub menu (value
importGroup ). |
static String |
MENU_ID
Pop-up menu: id of the source sub menu (value
org.eclipse.jdt.ui.source.menu ). |
Constructor and Description |
---|
GenerateActionGroup(org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor editor,
String groupName)
Note: This constructor is for internal use only.
|
GenerateActionGroup(IViewPart part)
Creates a new
GenerateActionGroup . |
GenerateActionGroup(IWorkbenchSite site,
ISelectionProvider selectionProvider)
Creates a new
GenerateActionGroup . |
GenerateActionGroup(Page page)
Creates a new
GenerateActionGroup . |
Modifier and Type | Method and Description |
---|---|
void |
dispose() |
void |
editorStateChanged()
Deprecated.
As of 3.5, this method is no longer called
|
void |
fillActionBars(IActionBars actionBar) |
void |
fillContextMenu(IMenuManager menu) |
getContext, setContext, updateActionBars
public static final String MENU_ID
org.eclipse.jdt.ui.source.menu
).public static final String GROUP_IMPORT
importGroup
).public static final String GROUP_GENERATE
generateGroup
).public static final String GROUP_CODE
codeGroup
).public GenerateActionGroup(org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor editor, String groupName)
editor
- the compilation unit editorgroupName
- the group name to add the action topublic GenerateActionGroup(Page page)
GenerateActionGroup
. The group
requires that the selection provided by the page's selection provider
is of type org.eclipse.jface.viewers.IStructuredSelection
.page
- the page that owns this action grouppublic GenerateActionGroup(IViewPart part)
GenerateActionGroup
. The group
requires that the selection provided by the part's selection provider
is of type org.eclipse.jface.viewers.IStructuredSelection
.part
- the view part that owns this action grouppublic GenerateActionGroup(IWorkbenchSite site, ISelectionProvider selectionProvider)
GenerateActionGroup
. The group requires
that the selection provided by the given selection provider is of type
IStructuredSelection
.site
- the site that will own the action group.selectionProvider
- the selection provider used instead of the
page selection provider.public void editorStateChanged()
public void fillActionBars(IActionBars actionBar)
fillActionBars
in class ActionGroup
public void fillContextMenu(IMenuManager menu)
fillContextMenu
in class ActionGroup
public void dispose()
dispose
in class ActionGroup
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.