Revision 34c889c9
Added by Patrick Plitzner about 6 years ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/workingSet/matrix/CharacterMatrix.java | ||
---|---|---|
890 | 890 |
//show unit for quantitative data |
891 | 891 |
if(feature.isSupportsQuantitativeData()){ |
892 | 892 |
Set<MeasurementUnit> recommendedMeasurementUnits = feature.getRecommendedMeasurementUnits(); |
893 |
if(recommendedMeasurementUnits.size()!=1){
|
|
893 |
if(recommendedMeasurementUnits.size()>1){
|
|
894 | 894 |
MessagingUtils.warningDialog(Messages.CharacterMatrix_INIT_PROBLEM, CharacterMatrix.class, |
895 | 895 |
String.format(Messages.CharacterMatrix_INIT_PROBLEM_MESSAGE, feature.getLabel())); |
896 |
return; |
|
897 | 896 |
} |
898 |
MeasurementUnit unit = recommendedMeasurementUnits.iterator().next(); |
|
899 |
featureLabel += " ["+unit.getIdInVocabulary()+"]"; //$NON-NLS-1$ //$NON-NLS-2$ |
|
897 |
if(recommendedMeasurementUnits.size()==1){ |
|
898 |
MeasurementUnit unit = recommendedMeasurementUnits.iterator().next(); |
|
899 |
featureLabel += " ["+unit.getIdInVocabulary()+"]"; //$NON-NLS-1$ //$NON-NLS-2$ |
|
900 |
} |
|
900 | 901 |
} |
901 | 902 |
propertyToLabelMap.put(property, featureLabel); |
902 | 903 |
} |
Also available in: Unified diff
ref #7095 Fix column error when no unit was chosen for a quant. feature