changed TimePeriod object to TimePeriodParser
authorCherian Mathew <c.mathew@bgbm.org>
Mon, 22 Jul 2013 16:07:23 +0000 (16:07 +0000)
committerCherian Mathew <c.mathew@bgbm.org>
Mon, 22 Jul 2013 16:07:23 +0000 (16:07 +0000)
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/element/DateDetailSection.java

index 0cd545ac0dec494aa6189198dab8fc2c80591ae3..b44f464e6802ff2f988186c823aa835f8f2030a5 100644 (file)
@@ -16,6 +16,7 @@ import org.joda.time.Partial;
 
 import eu.etaxonomy.cdm.common.CdmUtils;
 import eu.etaxonomy.cdm.model.common.TimePeriod;
+import eu.etaxonomy.cdm.strategy.parser.TimePeriodParser;
 
 /**
  * <p>
@@ -145,10 +146,8 @@ public class DateDetailSection extends AbstractFormSection<TimePeriod> {
                        getEntity().setEnd(end);
                } else if (eventSource == text_parseText) {
                        cursorPosition = ((Text) text_parseText.getMainControl())
-                                       .getCaretPosition();
-                       //FIXME:3.3MC----
-                       //setEntityInternally(TimePeriod.parseString(text_parseText.getText()));
-                       //FIXME:3.3MC----
+                                       .getCaretPosition();                    
+                       setEntityInternally(TimePeriodParser.parseString(text_parseText.getText()));                    
                } else if (eventSource == text_freeText) {
                        getEntity().setFreeText(text_freeText.getText());
                }