Search in sources :

Example 1 with FunctionWizardExtension

use of eu.esdihumboldt.hale.ui.function.extension.FunctionWizardExtension in project hale by halestudio.

the class AbstractFunctionWizardContribution method getFunctionWizardDescriptors.

/**
 * Get the currently applicable function wizard descriptors
 *
 * @return the function wizard descriptors
 */
protected Collection<FunctionWizardDescriptor<?>> getFunctionWizardDescriptors() {
    FunctionWizardExtension fwe = FunctionWizardExtension.getInstance();
    Collection<FunctionWizardDescriptor<?>> result = new ArrayList<FunctionWizardDescriptor<?>>();
    // add wizards for type functions
    for (TypeFunctionDefinition function : FunctionUtil.getTypeFunctions(HaleUI.getServiceProvider())) {
        result.add(fwe.getWizardDescriptor(function.getId()));
    }
    // add wizards for property functions
    for (PropertyFunctionDefinition function : FunctionUtil.getPropertyFunctions(HaleUI.getServiceProvider())) {
        result.add(fwe.getWizardDescriptor(function.getId()));
    }
    return result;
// return FunctionWizardExtension.getInstance().getFactories();
}
Also used : FunctionWizardExtension(eu.esdihumboldt.hale.ui.function.extension.FunctionWizardExtension) TypeFunctionDefinition(eu.esdihumboldt.hale.common.align.extension.function.TypeFunctionDefinition) ArrayList(java.util.ArrayList) FunctionWizardDescriptor(eu.esdihumboldt.hale.ui.function.extension.FunctionWizardDescriptor) PropertyFunctionDefinition(eu.esdihumboldt.hale.common.align.extension.function.PropertyFunctionDefinition)

Aggregations

PropertyFunctionDefinition (eu.esdihumboldt.hale.common.align.extension.function.PropertyFunctionDefinition)1 TypeFunctionDefinition (eu.esdihumboldt.hale.common.align.extension.function.TypeFunctionDefinition)1 FunctionWizardDescriptor (eu.esdihumboldt.hale.ui.function.extension.FunctionWizardDescriptor)1 FunctionWizardExtension (eu.esdihumboldt.hale.ui.function.extension.FunctionWizardExtension)1 ArrayList (java.util.ArrayList)1