public abstract class AbstractFunctionWizardContribution
extends org.eclipse.jface.action.ContributionItem
Constructor and Description |
---|
AbstractFunctionWizardContribution()
Create a function wizard contribution that doesn't hide augmentations.
|
AbstractFunctionWizardContribution(boolean showAugmentations)
Constructor
|
Modifier and Type | Method and Description |
---|---|
protected abstract AbstractWizardAction<?> |
createWizardAction(FunctionWizardDescriptor<?> descriptor,
AlignmentService alignmentService)
Create a wizard action for the given function wizard descriptor
|
void |
fill(org.eclipse.swt.widgets.Menu menu,
int index) |
void |
fill(org.eclipse.swt.widgets.ToolBar parent,
int index) |
protected Collection<FunctionWizardDescriptor<?>> |
getFunctionWizardDescriptors()
Get the currently applicable function wizard descriptors
|
boolean |
hasActiveFunctions()
Determines if there are any active function wizards for the current
selection
|
abstract boolean |
isActive(FunctionWizardDescriptor<?> descriptor)
Determine if a function wizard is active for the current selection
|
boolean |
isDynamic() |
public AbstractFunctionWizardContribution(boolean showAugmentations)
showAugmentations
- if augmentations shall be shownpublic AbstractFunctionWizardContribution()
public void fill(org.eclipse.swt.widgets.ToolBar parent, int index)
fill
in interface org.eclipse.jface.action.IContributionItem
fill
in class org.eclipse.jface.action.ContributionItem
ContributionItem.fill(ToolBar, int)
protected Collection<FunctionWizardDescriptor<?>> getFunctionWizardDescriptors()
protected abstract AbstractWizardAction<?> createWizardAction(FunctionWizardDescriptor<?> descriptor, AlignmentService alignmentService)
descriptor
- the function wizard descriptoralignmentService
- the alignment servicepublic void fill(org.eclipse.swt.widgets.Menu menu, int index)
fill
in interface org.eclipse.jface.action.IContributionItem
fill
in class org.eclipse.jface.action.ContributionItem
ContributionItem.fill(Menu, int)
public boolean isDynamic()
isDynamic
in interface org.eclipse.jface.action.IContributionItem
isDynamic
in class org.eclipse.jface.action.ContributionItem
ContributionItem.isDynamic()
public abstract boolean isActive(FunctionWizardDescriptor<?> descriptor)
descriptor
- the function wizard descriptorpublic boolean hasActiveFunctions()
Build 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a