Project

General

Profile

« Previous | Next » 

Revision 715f0f50

Added by Cherian Mathew over 10 years ago

added [m] for Elevation, Dist. to ground, Dist. to Water in MinMaxTextSection
added check for editable terms to build term editor menu

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/element/MinMaxTextSection.java
59 59
		this.unitType = unitType;
60 60
		getLayoutComposite().setLayout(LayoutConstants.LAYOUT(2, false));
61 61

  
62
		text_minVal = formFactory.createNumberTextWithLabelElement(this,
63
				"Min : ", getMinimum(), style);
64

  
65
		text_maxVal = formFactory.createNumberTextWithLabelElement(this,
66
				"Max : ", getMaximum(), style);
67

  
62
		switch(unitType) {
63
			case ELEVATION:
64
				text_minVal = formFactory.createNumberTextWithLabelElement(this, "Min [m] : ", getMinimum(), style);
65
				text_maxVal = formFactory.createNumberTextWithLabelElement(this, "Max [m] : ", getMaximum(), style);	
66
				break;
67
			default:
68
				text_minVal = formFactory.createNumberTextWithLabelElement(this, "Min [m] : ", getMinimum(), style);
69
				text_maxVal = formFactory.createNumberTextWithLabelElement(this, "Max [m] : ", getMaximum(), style);								
70
				break;			
71
		}
68 72
		text_freeText = formFactory.createTextWithLabelElement(this,
69 73
				"Freetext : ", getFreetext(), style);
70 74

  
75

  
71 76
		formFactory.addPropertyChangeListener(this);
72 77
	}
73 78

  

Also available in: Unified diff