|
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
public class SchemaSelectionFunctionContribution
Function wizard contribution based on SchemaSelection
Constructor Summary | |
---|---|
SchemaSelectionFunctionContribution()
|
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 boolean |
checkType(Iterable<?> items,
Class<?> type)
Checks if each item is of the given type |
protected AbstractWizardAction<?> |
createWizardAction(FunctionWizardDescriptor<?> descriptor,
AlignmentService alignmentService)
Create a wizard action for the given function wizard descriptor |
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.AbstractFunctionWizardContribution |
---|
fill, fill, 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 SchemaSelectionFunctionContribution()
Method Detail |
---|
protected AbstractWizardAction<?> createWizardAction(FunctionWizardDescriptor<?> descriptor, AlignmentService alignmentService)
AbstractFunctionWizardContribution
createWizardAction
in class AbstractFunctionWizardContribution
descriptor
- the function wizard descriptoralignmentService
- the alignment service
AbstractFunctionWizardContribution.createWizardAction(FunctionWizardDescriptor,
AlignmentService)
public boolean isActive(FunctionWizardDescriptor<?> descriptor)
AbstractFunctionWizardContribution
isActive
in class AbstractFunctionWizardContribution
descriptor
- the function wizard descriptor
AbstractFunctionWizardContribution.isActive(FunctionWizardDescriptor)
protected boolean checkMandatoryConditions(Set<EntityDefinition> schemaEntities, Iterable<? extends AbstractParameter> functionEntities)
schemaEntities
- the schema entitiesfunctionEntities
- the entities as defined in the function
protected boolean checkType(Iterable<?> items, Class<?> type)
items
- the itemstype
- the type
true
if all items are of the given typeprotected boolean checkCount(int count, Set<? extends AbstractParameter> entities, boolean isTarget)
count
- the entity countentities
- the entity definitionsisTarget
- if the entities are target entities
public SchemaSelection getSelection()
|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |