cleanup
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / ui / section / reference / OriginalSourceElement.java
index 633e7b013ba519b677f06f632d5a192243f177ba..d98a23fc235f622ec005a57184aa384ca2c27578 100644 (file)
@@ -8,13 +8,9 @@
 */
 package eu.etaxonomy.taxeditor.ui.section.reference;
 
-import java.awt.Component;
-
 import org.apache.commons.lang3.StringUtils;
 import org.eclipse.jface.util.IPropertyChangeListener;
-import org.eclipse.swt.widgets.Composite;
 import org.eclipse.ui.forms.widgets.TableWrapData;
-import org.hibernate.EntityMode;
 
 import eu.etaxonomy.cdm.hibernate.HibernateProxyHelper;
 import eu.etaxonomy.cdm.model.common.CdmBase;
@@ -35,7 +31,6 @@ import eu.etaxonomy.taxeditor.ui.element.TextWithLabelElement;
 import eu.etaxonomy.taxeditor.ui.element.TimePeriodElement;
 import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailElement;
 import eu.etaxonomy.taxeditor.ui.section.common.ExternalLinksSection;
-import eu.etaxonomy.taxeditor.ui.section.taxon.TaxonBaseDetailSection;
 import eu.etaxonomy.taxeditor.ui.selection.EntitySelectionElement;
 
 /**
@@ -74,7 +69,7 @@ public class OriginalSourceElement<T extends OriginalSourceBase>
             if (entity.getCitation() != null) {
                refType = entity.getCitation().getType();
             }
-               
+
         }
         selection_Ref.setBackground(this.getPersistentBackground());
         microReference = formFactory.createTextWithLabelElement(formElement, "Details", entity != null? entity.getCitationMicroReference(): "", style);
@@ -117,7 +112,7 @@ public class OriginalSourceElement<T extends OriginalSourceBase>
     @Override
     public void handleEvent(Object eventSource) {
         if (eventSource.equals(selection_Ref)){
-               
+
             getEntity().setCitation(selection_Ref.getEntity());
             ReferenceType newRefType = getEntity().getCitation().getType();
             if (refType != null && refType.isDynamic() ^ getEntity().getCitation().getType().isDynamic()) {
@@ -146,7 +141,7 @@ public class OriginalSourceElement<T extends OriginalSourceBase>
         externalLinks.setIndent(indent+10);
         advancedSection.setIndent(indent+10);
     }
-    
+
     @Override
     public void refresh() {
                updateContent();
@@ -164,14 +159,14 @@ public class OriginalSourceElement<T extends OriginalSourceBase>
                    if (advancedSection != null) {
                        advancedSection.setEntity(getEntity());
                    }
-                       
+
                    externalLinks.setEntity(getEntity());
-                   
+
                }
-               
+
        }
-    
 
-    
-    
+
+
+
 }
\ No newline at end of file