public final class WizardActionGroup extends ActionGroup
Here are the required steps for using this feature correctly:
fillContextMenu(IMenuManager)
.Modifier and Type | Field and Description |
---|---|
static String |
TYPE_EXPORT
The type for commonWizard extensions with the value "new" for their type
attribute.
|
static String |
TYPE_IMPORT
The type for commonWizard extensions with the value "new" for their type
attribute.
|
static String |
TYPE_NEW
The type for commonWizard extensions with the value "new" for their type
attribute.
|
Constructor and Description |
---|
WizardActionGroup(IWorkbenchWindow aWindow,
IWizardRegistry aWizardRegistry,
String aType) |
WizardActionGroup(IWorkbenchWindow aWindow,
IWizardRegistry aWizardRegistry,
String aType,
INavigatorContentService aContentService) |
Modifier and Type | Method and Description |
---|---|
void |
dispose()
This method is called by the user of an action group to signal that the group is
no longer needed.
|
void |
fillContextMenu(IMenuManager menu)
Adds the applicable actions to a context menu,
based on the state of the
ActionContext . |
protected IAction |
getAction(String id) |
protected Map |
getActions() |
String[] |
getWizardActionIds() |
void |
setContext(ActionContext aContext)
Sets the context used to determine which actions are added,
and what their enabled state should be.
|
fillActionBars, getContext, updateActionBars
public static final String TYPE_NEW
public static final String TYPE_IMPORT
public static final String TYPE_EXPORT
public WizardActionGroup(IWorkbenchWindow aWindow, IWizardRegistry aWizardRegistry, String aType)
aWindow
- The window that will be used to acquire a Shell and a
Selection ServiceaWizardRegistry
- The wizard registry will be used to locate the correct wizard
descriptions.aType
- Indicates the value of the type attribute of the commonWizard
extension point. Use any of the TYPE_XXX constants defined on
this class.PlatformUI.getWorkbench()
,
IWorkbench.getNewWizardRegistry()
,
IWorkbench.getImportWizardRegistry()
,
IWorkbench.getExportWizardRegistry()
public WizardActionGroup(IWorkbenchWindow aWindow, IWizardRegistry aWizardRegistry, String aType, INavigatorContentService aContentService)
aWindow
- The window that will be used to acquire a Shell and a
Selection ServiceaWizardRegistry
- The wizard registry will be used to locate the correct wizard
descriptions.aType
- Indicates the value of the type attribute of the commonWizard
extension point. Use any of the TYPE_XXX constants defined on
this class.aContentService
- The content service to use when deciding visibility.PlatformUI.getWorkbench()
,
IWorkbench.getNewWizardRegistry()
,
IWorkbench.getImportWizardRegistry()
,
IWorkbench.getExportWizardRegistry()
public void setContext(ActionContext aContext)
ActionGroup
setContext
in class ActionGroup
aContext
- the context to usepublic void fillContextMenu(IMenuManager menu)
ActionGroup
ActionContext
.
The default implementation does nothing. Subclasses may override or extend this method.
fillContextMenu
in class ActionGroup
menu
- the context menu managerpublic void dispose()
ActionGroup
The default implementation calls setContext(null)
.
Subclasses may extend this method.
dispose
in class ActionGroup
protected Map getActions()
public String[] getWizardActionIds()
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.