package eu.etaxonomy.taxeditor.ui.section.reference;
import org.eclipse.swt.widgets.Label;
+import org.eclipse.ui.forms.widgets.TableWrapData;
import eu.etaxonomy.cdm.hibernate.HibernateProxyHelper;
import eu.etaxonomy.cdm.model.common.CdmBase;
import eu.etaxonomy.cdm.model.description.DescriptionElementSource;
import eu.etaxonomy.cdm.model.name.TaxonName;
+import eu.etaxonomy.cdm.model.reference.INomenclaturalReference;
import eu.etaxonomy.cdm.model.reference.OriginalSourceBase;
import eu.etaxonomy.cdm.model.reference.Reference;
+import eu.etaxonomy.taxeditor.model.AbstractUtility;
+import eu.etaxonomy.taxeditor.preference.Resources;
import eu.etaxonomy.taxeditor.store.StoreUtil;
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement;
protected EntitySelectionElement<Reference> selection_Ref;
protected TextWithLabelElement microReference;
- protected OriginalSourceAdvancedSection advancedSection;
+// protected OriginalSourceAdvancedSection advancedSection;
protected String label = "Source";
protected CdmBase cdmEntity;
externalLinks = formFactory.createExternalLinksSection(getConversationHolder(), formElement, "Protologue/Original Publication", StoreUtil.getSectionStyle(ExternalLinksSection.class, DescriptionElementSource.class.getCanonicalName()));
externalLinks.setLayoutData(LayoutConstants.FILL_HORIZONTALLY(2, 3));
externalLinks.setEntity(entity);
+ externalLinks.setFont(AbstractUtility.getFont(Resources.COLOR_FONT_DEFAULT));
externalLinks.setEmptySectionString("No protologue yet.");
addControl(externalLinks);
addElement(externalLinks);
-// advancedSection = formFactory.createOriginalSourceAdvancedSection(getConversationHolder(), formElement, null, StoreUtil.getSectionStyle(OriginalSourceAdvancedSection.class, INomenclaturalReference.class.getCanonicalName()));
-// TableWrapData layoutData = LayoutConstants.FILL_HORIZONTALLY(2, 1);
-// layoutData.indent = 10;
-//
-// advancedSection.setLayoutData(layoutData);
-// advancedSection.setBackground(this.getPersistentBackground());
-// advancedSection.setEntity(entity);
-// addControl(advancedSection);
-// addElement(advancedSection);
+ advancedSection = formFactory.createOriginalSourceAdvancedSection(getConversationHolder(), formElement, null, StoreUtil.getSectionStyle(OriginalSourceAdvancedSection.class, INomenclaturalReference.class.getCanonicalName()));
+ TableWrapData layoutData = LayoutConstants.FILL_HORIZONTALLY(2, 1);
+
+ advancedSection.setLayoutData(layoutData);
+ advancedSection.setBackground(this.getPersistentBackground());
+ advancedSection.setEntity(entity);
+ addControl(advancedSection);
+ addElement(advancedSection);
this.getLayoutComposite().layout();