Project

General

Profile

« Previous | Next » 

Revision 0e7b64fb

Added by Katja Luther about 3 years ago

ref #9549: adapt editor to secundum as originalsource and remove unused fields

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/reference/NomenclaturalSourceElement.java
9 9
package eu.etaxonomy.taxeditor.ui.section.reference;
10 10

  
11 11
import org.eclipse.swt.widgets.Label;
12
import org.eclipse.ui.forms.widgets.TableWrapData;
13 12

  
14 13
import eu.etaxonomy.cdm.hibernate.HibernateProxyHelper;
15 14
import eu.etaxonomy.cdm.model.common.CdmBase;
16 15
import eu.etaxonomy.cdm.model.description.DescriptionElementSource;
17 16
import eu.etaxonomy.cdm.model.name.NomenclaturalSource;
18 17
import eu.etaxonomy.cdm.model.name.TaxonName;
19
import eu.etaxonomy.cdm.model.reference.INomenclaturalReference;
20 18
import eu.etaxonomy.cdm.model.reference.Reference;
21 19
import eu.etaxonomy.taxeditor.model.AbstractUtility;
22 20
import eu.etaxonomy.taxeditor.preference.Resources;
......
71 69

  
72 70
        select_nameUsedInSource = formFactory.createSelectionElement(TaxonName.class, formElement, "Original Spelling", entity != null? entity.getNameUsedInSource(): null, EntitySelectionElement.ALL, style);
73 71

  
74
        externalLinks = formFactory.createExternalLinksSection(getConversationHolder(), formElement, "Protologue/Original Publication", StoreUtil.getSectionStyle(ExternalLinksSection.class, DescriptionElementSource.class.getCanonicalName()));
72
        externalLinks = formFactory.createExternalLinksSection(getConversationHolder(), formElement, "Protologue/Original Publication", false, StoreUtil.getSectionStyle(ExternalLinksSection.class, DescriptionElementSource.class.getCanonicalName()));
75 73
        externalLinks.setEmptySectionString("No protologue yet.");
76 74
        externalLinks.setLayoutData(LayoutConstants.FILL_HORIZONTALLY(2, 3));
77 75
        externalLinks.setEntity(entity);
......
81 79
        addControl(externalLinks);
82 80
        addElement(externalLinks);
83 81

  
84
        advancedSection = formFactory.createOriginalSourceAdvancedSection(getConversationHolder(), formElement, null, StoreUtil.getSectionStyle(OriginalSourceAdvancedSection.class, INomenclaturalReference.class.getCanonicalName()));
85
        TableWrapData layoutData = LayoutConstants.FILL_HORIZONTALLY(2, 1);
86

  
87
        advancedSection.setLayoutData(layoutData);
88
        advancedSection.setBackground(this.getPersistentBackground());
89
        advancedSection.setEntity(entity);
90
        advancedSection.setFont(AbstractUtility.getFont(Resources.COLOR_FONT_DEFAULT));
91
        addControl(advancedSection);
92
        addElement(advancedSection);
82
//        advancedSection = formFactory.createOriginalSourceAdvancedSection(getConversationHolder(), formElement, null, StoreUtil.getSectionStyle(OriginalSourceAdvancedSection.class, INomenclaturalReference.class.getCanonicalName()));
83
//        TableWrapData layoutData = LayoutConstants.FILL_HORIZONTALLY(2, 1);
84
//
85
//        advancedSection.setLayoutData(layoutData);
86
//        advancedSection.setBackground(this.getPersistentBackground());
87
//        advancedSection.setEntity(entity);
88
//        advancedSection.setFont(AbstractUtility.getFont(Resources.COLOR_FONT_DEFAULT));
89
//        addControl(advancedSection);
90
//        addElement(advancedSection);
93 91
        this.getLayoutComposite().layout();
94 92
    }
95 93

  

Also available in: Unified diff