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.store.StoreUtil;
Label sep = formFactory.createLabel(formElement.getLayoutComposite(), "");
sep.setLayoutData(LayoutConstants.FILL_HORIZONTALLY(2, 1));
- select_nameUsedInSource = formFactory.createSelectionElement(TaxonName.class, formElement, "Original spelling", entity != null? ((DescriptionElementSource)entity).getNameUsedInSource(): null, EntitySelectionElement.ALL, style);
+ select_nameUsedInSource = formFactory.createSelectionElement(TaxonName.class, formElement, "Original Spelling", entity != null? ((DescriptionElementSource)entity).getNameUsedInSource(): null, EntitySelectionElement.ALL, style);
- externalLinks = formFactory.createExternalLinksSection(getConversationHolder(), formElement, StoreUtil.getSectionStyle(ExternalLinksSection.class, DescriptionElementSource.class.getCanonicalName()));
+ 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.setText("Protologue/original publication");
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 = 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.setLayoutData(layoutData);
- advancedSection.setBackground(this.getPersistentBackground());
- advancedSection.setEntity(entity);
- addControl(advancedSection);
- addElement(advancedSection);
this.getLayoutComposite().layout();
}
+
}