public class ReplaceFunctionWizardContribution extends SchemaSelectionFunctionContribution
Constructor and Description |
---|
ReplaceFunctionWizardContribution()
Default constructor.
|
ReplaceFunctionWizardContribution(Cell originalCell)
Constructor
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
checkCount(int count,
Set<? extends AbstractParameter> entities,
boolean isTarget)
Checks if the given entity count is compatible with the given set of
entity definitions
|
protected boolean |
checkMandatoryConditions(Set<EntityDefinition> schemaEntities,
Iterable<? extends AbstractParameter> functionEntities)
Checks if all entities that are mandatory in the function definition and
have specific attached conditions can be met by at least one of the given
schema entities.
|
protected 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) |
Cell |
getOriginalCell()
Get the cell
|
SchemaSelection |
getSelection()
Get the schema selection
|
boolean |
isActive(FunctionWizardDescriptor<?> descriptor)
Determine if a function wizard is active for the current selection
|
checkType
getFunctionWizardDescriptors, hasActiveFunctions, isDynamic
public ReplaceFunctionWizardContribution(Cell originalCell)
originalCell
- the original cellpublic ReplaceFunctionWizardContribution()
IStructuredSelection
.protected AbstractWizardAction<?> createWizardAction(FunctionWizardDescriptor<?> descriptor, AlignmentService alignmentService)
AbstractFunctionWizardContribution
createWizardAction
in class SchemaSelectionFunctionContribution
descriptor
- the function wizard descriptoralignmentService
- the alignment serviceSchemaSelectionFunctionContribution.createWizardAction(FunctionWizardDescriptor,
AlignmentService)
public SchemaSelection getSelection()
SchemaSelectionFunctionContribution
getSelection
in class SchemaSelectionFunctionContribution
SchemaSelectionFunctionContribution.getSelection()
public boolean isActive(FunctionWizardDescriptor<?> descriptor)
AbstractFunctionWizardContribution
isActive
in class SchemaSelectionFunctionContribution
descriptor
- the function wizard descriptorSchemaSelectionFunctionContribution.isActive(FunctionWizardDescriptor)
protected boolean checkCount(int count, Set<? extends AbstractParameter> entities, boolean isTarget)
SchemaSelectionFunctionContribution
checkCount
in class SchemaSelectionFunctionContribution
count
- the entity countentities
- the entity definitionsisTarget
- if the entities are target entitiesSchemaSelectionFunctionContribution.checkCount(int, Set, boolean)
protected boolean checkMandatoryConditions(Set<EntityDefinition> schemaEntities, Iterable<? extends AbstractParameter> functionEntities)
SchemaSelectionFunctionContribution
checkMandatoryConditions
in class SchemaSelectionFunctionContribution
schemaEntities
- the schema entitiesfunctionEntities
- the entities as defined in the functionSchemaSelectionFunctionContribution.checkMandatoryConditions(Set,
Iterable)
public void fill(org.eclipse.swt.widgets.ToolBar parent, int index)
fill
in interface org.eclipse.jface.action.IContributionItem
fill
in class AbstractFunctionWizardContribution
AbstractFunctionWizardContribution.fill(ToolBar, int)
public void fill(org.eclipse.swt.widgets.Menu menu, int index)
fill
in interface org.eclipse.jface.action.IContributionItem
fill
in class AbstractFunctionWizardContribution
AbstractFunctionWizardContribution.fill(Menu, int)
public Cell getOriginalCell()
Build 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a