Starts fixing #2268. We might have to do more here.
authorn.hoffmann <n.hoffmann@localhost>
Mon, 7 Mar 2011 13:23:10 +0000 (13:23 +0000)
committern.hoffmann <n.hoffmann@localhost>
Mon, 7 Mar 2011 13:23:10 +0000 (13:23 +0000)
taxeditor-store/src/main/java/eu/etaxonomy/taxeditor/ui/section/occurrence/GeneralDetailElement.java

index 949fc6f51e686d509c5a197373b7b769076062ec..72cabcc8cf82cc18b50ee3e1ff0ff7b7f111bb9c 100644 (file)
@@ -92,9 +92,9 @@ public class GeneralDetailElement extends AbstractCdmDetailElement<DerivedUnitFa
                else if(eventSource == number_elevation){
                        getEntity().setAbsoluteElevation(number_elevation.getInteger());
                }
-//             else if(eventSource == section_date){
-//                     getEntity().setGatheringPeriod(section_date.getTimePeriod());
-//             }
+               else if(eventSource == element_date){
+                       getEntity().setGatheringPeriod(element_date.getTimePeriod());
+               }
                else if(eventSource == selection_collector){
                        getEntity().setCollector(selection_collector.getSelection());
                }
@@ -107,6 +107,10 @@ public class GeneralDetailElement extends AbstractCdmDetailElement<DerivedUnitFa
                else if(eventSource == text_barcode){
                        getEntity().setBarcode(text_barcode.getText());
                }
+               
+               if(eventSource != toggleableText_titleCache){
+                       toggleableText_titleCache.setText(getEntity().getTitleCache());
+               }
        }
 
 }