|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jface.action.ContributionItem
eu.esdihumboldt.hale.ui.function.contribution.AbstractFunctionWizardContribution
eu.esdihumboldt.hale.ui.function.contribution.SchemaSelectionFunctionContribution
eu.esdihumboldt.hale.ui.function.contribution.ReplaceFunctionWizardContribution
public class ReplaceFunctionWizardContribution
Contribution item offering possibilities to replace an existing cell with another function.
Constructor Summary | |
---|---|
ReplaceFunctionWizardContribution()
Default constructor. |
|
ReplaceFunctionWizardContribution(Cell originalCell)
Constructor |
Method Summary | |
---|---|
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 |
Methods inherited from class eu.esdihumboldt.hale.ui.function.contribution.SchemaSelectionFunctionContribution |
---|
checkType |
Methods inherited from class eu.esdihumboldt.hale.ui.function.contribution.AbstractFunctionWizardContribution |
---|
getFunctionWizardDescriptors, hasActiveFunctions, isDynamic |
Methods inherited from class org.eclipse.jface.action.ContributionItem |
---|
dispose, fill, fill, getId, getParent, isDirty, isEnabled, isGroupMarker, isSeparator, isVisible, saveWidgetState, setId, setParent, setVisible, toString, update, update |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ReplaceFunctionWizardContribution(Cell originalCell)
originalCell
- the original cellpublic ReplaceFunctionWizardContribution()
IStructuredSelection
.
Method Detail |
---|
protected AbstractWizardAction<?> createWizardAction(FunctionWizardDescriptor<?> descriptor, AlignmentService alignmentService)
AbstractFunctionWizardContribution
createWizardAction
in class SchemaSelectionFunctionContribution
descriptor
- the function wizard descriptoralignmentService
- the alignment service
SchemaSelectionFunctionContribution.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 descriptor
SchemaSelectionFunctionContribution.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 entities
SchemaSelectionFunctionContribution.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 function
SchemaSelectionFunctionContribution.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()
|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |