Revision f5f64287
Added by Patrick Plitzner about 6 years ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/workingSet/matrix/quantitative/QuantitativeDataCellEditor.java | ||
---|---|---|
24 | 24 |
import org.eclipse.swt.widgets.Listener; |
25 | 25 |
import org.eclipse.swt.widgets.Text; |
26 | 26 |
|
27 |
import eu.etaxonomy.cdm.api.service.dto.RowWrapperDTO; |
|
27 | 28 |
import eu.etaxonomy.cdm.model.description.Feature; |
28 | 29 |
import eu.etaxonomy.cdm.model.description.QuantitativeData; |
29 | 30 |
import eu.etaxonomy.cdm.model.description.StatisticalMeasure; |
30 | 31 |
import eu.etaxonomy.taxeditor.editor.workingSet.matrix.CharacterMatrix; |
31 |
import eu.etaxonomy.taxeditor.editor.workingSet.matrix.RowWrapper; |
|
32 | 32 |
|
33 | 33 |
/** |
34 | 34 |
* Cell editor for QuantitativeData |
... | ... | |
132 | 132 |
@Override |
133 | 133 |
protected Control activateCell(Composite parent, Object originalCanonicalValue) { |
134 | 134 |
Object rowObject = matrix.getBodyDataProvider().getRowObject(this.getRowIndex()); |
135 |
if(rowObject instanceof RowWrapper){ |
|
135 |
if(rowObject instanceof RowWrapperDTO){
|
|
136 | 136 |
this.editorControl = createEditorControl(parent); |
137 | 137 |
if(originalCanonicalValue==null){ |
138 |
originalCanonicalValue = ((RowWrapper) rowObject).addQuantitativeData(feature); |
|
138 |
originalCanonicalValue = ((RowWrapperDTO) rowObject).addQuantitativeData(feature);
|
|
139 | 139 |
} |
140 | 140 |
this.setEditorValue(originalCanonicalValue); |
141 | 141 |
|
Also available in: Unified diff
ref #7095 Move specimen and description loading to service layer