- rename IDirtyMarkableSelectionProvider to IDirtyMarkable
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / ui / element / MinMaxTextSection.java
index 1012b95bc8229df9be8c35036441f03d20858d9d..bd16aa177bad08711ced3edfd7773859ac7d8276 100644 (file)
@@ -59,12 +59,16 @@ public class MinMaxTextSection extends AbstractFormSection<DerivedUnitFacade> {
                this.unitType = unitType;
                getLayoutComposite().setLayout(LayoutConstants.LAYOUT(2, false));
 
-               text_minVal = formFactory.createNumberTextWithLabelElement(this,
-                               "Min : ", getMinimum(), style);
-
-               text_maxVal = formFactory.createNumberTextWithLabelElement(this,
-                               "Max : ", getMaximum(), style);
-
+               switch(unitType) {
+                       case ELEVATION:
+                               text_minVal = formFactory.createNumberTextWithLabelElement(this, "Min [m] : ", getMinimum(), style);
+                               text_maxVal = formFactory.createNumberTextWithLabelElement(this, "Max [m] : ", getMaximum(), style);    
+                               break;
+                       default:
+                               text_minVal = formFactory.createNumberTextWithLabelElement(this, "Min [m] : ", getMinimum(), style);
+                               text_maxVal = formFactory.createNumberTextWithLabelElement(this, "Max [m] : ", getMaximum(), style);                                                            
+                               break;                  
+               }
                text_freeText = formFactory.createTextWithLabelElement(this,
                                "Freetext : ", getFreetext(), style);