Revision 2fa5cd44
Added by Patrick Plitzner over 5 years ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/descriptiveDataSet/matrix/quantitative/QuantitativeDataDialog.java | ||
---|---|---|
75 | 75 |
Map<StatisticalMeasure, List<Text>> textFields = composite.getTextFields(); |
76 | 76 |
textFields.forEach((measure, texts)->{ |
77 | 77 |
texts.forEach(text->{ |
78 |
String string = text.getText(); |
|
79 |
try { |
|
80 |
float exactValue = Float.parseFloat(string); |
|
81 |
quantitativeData.addStatisticalValue(StatisticalMeasurementValue.NewInstance(measure, exactValue)); |
|
82 |
} catch (NumberFormatException e) { |
|
83 |
} |
|
78 |
if(text.isEnabled()){ |
|
79 |
String string = text.getText(); |
|
80 |
try { |
|
81 |
float exactValue = Float.parseFloat(string); |
|
82 |
quantitativeData.addStatisticalValue(StatisticalMeasurementValue.NewInstance(measure, exactValue)); |
|
83 |
} catch (NumberFormatException e) { |
|
84 |
} |
|
85 |
} |
|
84 | 86 |
}); |
85 | 87 |
}); |
86 | 88 |
} |
Also available in: Unified diff
Allow only exact values xOR aggregated values in cell editor