*/
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;
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;
/**
if (entity.getCitation() != null) {
refType = entity.getCitation().getType();
}
-
+
}
selection_Ref.setBackground(this.getPersistentBackground());
microReference = formFactory.createTextWithLabelElement(formElement, "Details", entity != null? entity.getCitationMicroReference(): "", style);
@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()) {
externalLinks.setIndent(indent+10);
advancedSection.setIndent(indent+10);
}
-
+
@Override
public void refresh() {
updateContent();
if (advancedSection != null) {
advancedSection.setEntity(getEntity());
}
-
+
externalLinks.setEntity(getEntity());
-
+
}
-
+
}
-
-
-
+
+
+
}
\ No newline at end of file