Revision 85ff485a
Added by Katja Luther over 3 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/element/CdmFormFactory.java | ||
---|---|---|
253 | 253 |
import eu.etaxonomy.taxeditor.ui.section.name.NomenclaturalStatusSection; |
254 | 254 |
import eu.etaxonomy.taxeditor.ui.section.name.NonViralNameDetailElement; |
255 | 255 |
import eu.etaxonomy.taxeditor.ui.section.name.NonViralNameDetailSection; |
256 |
import eu.etaxonomy.taxeditor.ui.section.name.ProtologueElement; |
|
257 |
import eu.etaxonomy.taxeditor.ui.section.name.ProtologueSection; |
|
258 | 256 |
import eu.etaxonomy.taxeditor.ui.section.name.RuleConsideredElement; |
259 | 257 |
import eu.etaxonomy.taxeditor.ui.section.name.SpecimenTypeDesignationElement; |
260 | 258 |
import eu.etaxonomy.taxeditor.ui.section.name.TextTypeDesignationElement; |
... | ... | |
2730 | 2728 |
return section; |
2731 | 2729 |
} |
2732 | 2730 |
|
2733 |
public ProtologueSection createProtologueSection(ConversationHolder conversation, ICdmFormElement parentElement, int style){ |
|
2734 |
ProtologueSection section = new ProtologueSection(this, conversation, parentElement, style); |
|
2735 |
addAndAdaptSection(parentElement, section); |
|
2736 |
return section; |
|
2737 |
} |
|
2731 |
// public ProtologueSection createProtologueSection(ConversationHolder conversation, ICdmFormElement parentElement, int style){
|
|
2732 |
// ProtologueSection section = new ProtologueSection(this, conversation, parentElement, style);
|
|
2733 |
// addAndAdaptSection(parentElement, section);
|
|
2734 |
// return section;
|
|
2735 |
// }
|
|
2738 | 2736 |
public ExternalLinksSection createExternalLinksSection(ConversationHolder conversation, ICdmFormElement parentElement, int style){ |
2739 | 2737 |
ExternalLinksSection section = new ExternalLinksSection(this, conversation, parentElement, style); |
2740 | 2738 |
addAndAdaptSection(parentElement, section); |
... | ... | |
3092 | 3090 |
// this is the special case for protologs, maybe we can do this |
3093 | 3091 |
// differently when API improves |
3094 | 3092 |
DescriptionElementBase descriptionElement = (DescriptionElementBase) entity; |
3095 |
if (descriptionElement.getFeature().equals(Feature.PROTOLOGUE())) { |
|
3096 |
element = new ProtologueElement(this, parentElement, descriptionElement, removeListener, style); |
|
3097 |
} |
|
3093 |
// if (descriptionElement.getFeature().equals(Feature.PROTOLOGUE())) {
|
|
3094 |
// element = new ProtologueElement(this, parentElement, descriptionElement, removeListener, style);
|
|
3095 |
// }
|
|
3098 | 3096 |
} else if (entity instanceof Identifier) { |
3099 | 3097 |
if(parentElement instanceof AbstractSampleDesignationDetailSection){ |
3100 | 3098 |
element = new SampleDesignationTextDetailElement(this, parentElement, (Identifier<DnaSample>) entity, removeListener, backgroundColor, style); |
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/detail/CdmSectionPart.java | ||
---|---|---|
36 | 36 |
import eu.etaxonomy.taxeditor.ui.section.name.NameRelationshipDetailSection; |
37 | 37 |
import eu.etaxonomy.taxeditor.ui.section.name.NomenclaturalStatusSection; |
38 | 38 |
import eu.etaxonomy.taxeditor.ui.section.name.NonViralNameDetailSection; |
39 |
import eu.etaxonomy.taxeditor.ui.section.name.ProtologueSection; |
|
40 | 39 |
import eu.etaxonomy.taxeditor.ui.section.name.TypeDesignationSection; |
41 | 40 |
import eu.etaxonomy.taxeditor.ui.section.occurrence.GeoScopeDetailSection; |
42 | 41 |
import eu.etaxonomy.taxeditor.ui.section.occurrence.IDerivedUnitFacadeDetailSection; |
... | ... | |
147 | 146 |
((NomenclaturalStatusSection) formSection) |
148 | 147 |
.setTaxonBase( ((TaxonRelationship)input).getFromTaxon()); |
149 | 148 |
return true; |
150 |
}else if ((input instanceof TaxonRelationship) |
|
151 |
&& (formSection instanceof ProtologueSection)) { |
|
152 |
((ProtologueSection) formSection) |
|
153 |
.setTaxonBase( ((TaxonRelationship)input).getFromTaxon()); |
|
154 |
return true; |
|
149 |
// }else if ((input instanceof TaxonRelationship)
|
|
150 |
// && (formSection instanceof ProtologueSection)) {
|
|
151 |
// ((ProtologueSection) formSection)
|
|
152 |
// .setTaxonBase( ((TaxonRelationship)input).getFromTaxon());
|
|
153 |
// return true;
|
|
155 | 154 |
}else if ((input instanceof TaxonRelationship) |
156 | 155 |
&& (formSection instanceof TypeDesignationSection)) { |
157 | 156 |
((TypeDesignationSection) formSection) |
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/e4/details/DetailsViewerE4.java | ||
---|---|---|
111 | 111 |
import eu.etaxonomy.taxeditor.ui.section.name.NameRelationshipDetailSection; |
112 | 112 |
import eu.etaxonomy.taxeditor.ui.section.name.NomenclaturalStatusSection; |
113 | 113 |
import eu.etaxonomy.taxeditor.ui.section.name.NonViralNameDetailSection; |
114 |
import eu.etaxonomy.taxeditor.ui.section.name.ProtologueSection; |
|
115 | 114 |
import eu.etaxonomy.taxeditor.ui.section.name.TypeDesignationSection; |
116 | 115 |
import eu.etaxonomy.taxeditor.ui.section.occurrence.DerivedUnitBaseDetailSection; |
117 | 116 |
import eu.etaxonomy.taxeditor.ui.section.occurrence.DerivedUnitGeneralDetailSection; |
... | ... | |
553 | 552 |
addPart(nomenclaturalStatusSection); |
554 | 553 |
} |
555 | 554 |
|
556 |
if ( config == null || config.isProtologueActivated()){ |
|
557 |
ProtologueSection protologSection = formFactory.createProtologueSection(getConversationHolder(), parent, StoreUtil.getSectionStyle(ProtologueSection.class, getInput().getClass().getCanonicalName())); |
|
558 |
protologSection.setEnabled(detailsEnabled); |
|
559 |
formFactory.createHorizontalSeparator(parent, SWT.BORDER); |
|
560 |
addPart(protologSection); |
|
561 |
} |
|
555 |
// if ( config == null || config.isProtologueActivated()){
|
|
556 |
// ProtologueSection protologSection = formFactory.createProtologueSection(getConversationHolder(), parent, StoreUtil.getSectionStyle(ProtologueSection.class, getInput().getClass().getCanonicalName()));
|
|
557 |
// protologSection.setEnabled(detailsEnabled);
|
|
558 |
// formFactory.createHorizontalSeparator(parent, SWT.BORDER);
|
|
559 |
// addPart(protologSection);
|
|
560 |
// }
|
|
562 | 561 |
|
563 | 562 |
if (config == null || config.isTypeDesignationSectionActivated()){ |
564 | 563 |
TypeDesignationSection typeDesignationSection = formFactory.createTypeDesignationSection(getConversationHolder(), parent, StoreUtil.getSectionStyle(TypeDesignationSection.class, getInput().getClass().getCanonicalName())); |
... | ... | |
599 | 598 |
addPart(nomenclaturalStatusSection); |
600 | 599 |
addPart(referenceDetailSection); |
601 | 600 |
|
602 |
ProtologueSection protologSection = formFactory.createProtologueSection(getConversationHolder(), parent, StoreUtil.getSectionStyle(ProtologueSection.class, getInput().getClass().getCanonicalName())); |
|
603 |
formFactory.createHorizontalSeparator(parent, SWT.BORDER); |
|
601 |
// ProtologueSection protologSection = formFactory.createProtologueSection(getConversationHolder(), parent, StoreUtil.getSectionStyle(ProtologueSection.class, getInput().getClass().getCanonicalName()));
|
|
602 |
// formFactory.createHorizontalSeparator(parent, SWT.BORDER);
|
|
604 | 603 |
|
605 | 604 |
TypeDesignationSection typeDesignationSection = formFactory.createTypeDesignationSection(getConversationHolder(), parent, StoreUtil.getSectionStyle(TypeDesignationSection.class, getInput().getClass().getCanonicalName())); |
606 | 605 |
formFactory.createHorizontalSeparator(parent, SWT.BORDER); |
607 | 606 |
|
608 | 607 |
NameRelationshipDetailSection nameRelationshipSection = formFactory.createNameRelationshipDetailSection(getConversationHolder(), parent, StoreUtil.getSectionStyle(NameRelationshipDetailSection.class, getInput().getClass().getCanonicalName())); |
609 | 608 |
formFactory.createHorizontalSeparator(parent, SWT.BORDER); |
610 |
addPart(protologSection); |
|
609 |
// addPart(protologSection);
|
|
611 | 610 |
addPart(typeDesignationSection); |
612 | 611 |
addPart(nameRelationshipSection); |
613 | 612 |
|
... | ... | |
969 | 968 |
formFactory.createHorizontalSeparator(parent, SWT.BORDER); |
970 | 969 |
addPart(nomenclaturalStatusSection); |
971 | 970 |
|
972 |
ProtologueSection protologSection = formFactory.createProtologueSection(getConversationHolder(), parent, StoreUtil.getSectionStyle(ProtologueSection.class, getInput().getClass().getCanonicalName())); |
|
973 |
formFactory.createHorizontalSeparator(parent, SWT.BORDER); |
|
974 |
addPart(protologSection); |
|
971 |
// ProtologueSection protologSection = formFactory.createProtologueSection(getConversationHolder(), parent, StoreUtil.getSectionStyle(ProtologueSection.class, getInput().getClass().getCanonicalName()));
|
|
972 |
// formFactory.createHorizontalSeparator(parent, SWT.BORDER);
|
|
973 |
// addPart(protologSection);
|
|
975 | 974 |
|
976 | 975 |
TypeDesignationSection typeDesignationSection = formFactory.createTypeDesignationSection(getConversationHolder(), parent, StoreUtil.getSectionStyle(TypeDesignationSection.class, getInput().getClass().getCanonicalName())); |
977 | 976 |
formFactory.createHorizontalSeparator(parent, SWT.BORDER); |
Also available in: Unified diff
ref #9266: remove protologue section - needs to be cleaned up