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();
}
Aggregations