-// $Id$
/**
* Copyright (C) 2007 EDIT
* European Distributed Institute of Taxonomy
package eu.etaxonomy.taxeditor.ui.section.description;
+import java.util.ArrayList;
+import java.util.Set;
+
import org.eclipse.swt.events.SelectionListener;
import org.eclipse.ui.forms.widgets.ExpandableComposite;
@Override
public void setEntity(StatisticalMeasurementValue entity) {
this.entity = entity;
-// List<StatisticalMeasure> statisiticalMeasures = getEntity().getQuantitativeData().getFeature().getRecommendedStatisticalMeasures();
-// combo_type.setTerms(statisiticalMeasures);
+ Set<StatisticalMeasure> statisiticalMeasures = getEntity().getQuantitativeData().getFeature().getRecommendedStatisticalMeasures();
+ combo_type.setTerms(new ArrayList<StatisticalMeasure>(statisiticalMeasures));
combo_type.setSelection(entity.getType());
number_value.setNumber(entity.getValue());
section_modifiers.setEntity(entity);
}
else if(eventSource == combo_type){
getEntity().setType(combo_type.getSelection());
+ combo_type.removeEmptyElement();
}
}
}