Revision c25ddfcf
Added by Cherian Mathew almost 11 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/element/DateDetailSection.java | ||
---|---|---|
16 | 16 |
|
17 | 17 |
import eu.etaxonomy.cdm.common.CdmUtils; |
18 | 18 |
import eu.etaxonomy.cdm.model.common.TimePeriod; |
19 |
import eu.etaxonomy.cdm.strategy.parser.TimePeriodParser; |
|
19 | 20 |
|
20 | 21 |
/** |
21 | 22 |
* <p> |
... | ... | |
145 | 146 |
getEntity().setEnd(end); |
146 | 147 |
} else if (eventSource == text_parseText) { |
147 | 148 |
cursorPosition = ((Text) text_parseText.getMainControl()) |
148 |
.getCaretPosition(); |
|
149 |
//FIXME:3.3MC---- |
|
150 |
//setEntityInternally(TimePeriod.parseString(text_parseText.getText())); |
|
151 |
//FIXME:3.3MC---- |
|
149 |
.getCaretPosition(); |
|
150 |
setEntityInternally(TimePeriodParser.parseString(text_parseText.getText())); |
|
152 | 151 |
} else if (eventSource == text_freeText) { |
153 | 152 |
getEntity().setFreeText(text_freeText.getText()); |
154 | 153 |
} |
Also available in: Unified diff
changed TimePeriod object to TimePeriodParser