public final class WizardActionGroup extends ActionGroup
Here are the required steps for using this feature correctly:
fillContextMenu(IMenuManager).Clients may instantiate, but not subclass WizardActionGroup.
| 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.
|
protected void |
setWizardActionDescriptors(org.eclipse.ui.internal.navigator.wizards.CommonWizardDescriptor[] theWizardDescriptors) |
fillActionBars, getContext, updateActionBarspublic 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)
ActionGroupsetContext in class ActionGroupaContext - the context to usepublic void fillContextMenu(IMenuManager menu)
ActionGroupActionContext.
The default implementation does nothing. Subclasses may override or extend this method.
fillContextMenu in class ActionGroupmenu - the context menu managerpublic void dispose()
ActionGroup
The default implementation calls setContext(null).
Subclasses may extend this method.
dispose in class ActionGroupprotected Map getActions()
public String[] getWizardActionIds()
protected void setWizardActionDescriptors(org.eclipse.ui.internal.navigator.wizards.CommonWizardDescriptor[] theWizardDescriptors)
theWizardDescriptors - The wizard action ids to set. These should be defined through
org.eclipse.ui.xxxWizardsGuidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.