21 |
21 |
import org.eclipse.jface.viewers.SelectionChangedEvent;
|
22 |
22 |
import org.eclipse.jface.viewers.TreeNode;
|
23 |
23 |
import org.eclipse.swt.SWT;
|
24 |
|
import org.eclipse.ui.forms.widgets.ExpandableComposite;
|
25 |
24 |
|
26 |
25 |
import eu.etaxonomy.cdm.api.facade.DerivedUnitFacade;
|
27 |
26 |
import eu.etaxonomy.cdm.api.facade.DerivedUnitFacadeNotSupportedException;
|
... | ... | |
68 |
67 |
import eu.etaxonomy.taxeditor.preference.IPreferenceKeys;
|
69 |
68 |
import eu.etaxonomy.taxeditor.preference.PreferencesUtil;
|
70 |
69 |
import eu.etaxonomy.taxeditor.store.UsageTermCollection;
|
71 |
|
import eu.etaxonomy.taxeditor.ui.element.AbstractFormSection;
|
72 |
70 |
import eu.etaxonomy.taxeditor.ui.element.RootElement;
|
73 |
71 |
import eu.etaxonomy.taxeditor.ui.section.agent.PersonDetailSection;
|
74 |
72 |
import eu.etaxonomy.taxeditor.ui.section.agent.TeamDetailSection;
|
... | ... | |
125 |
123 |
import eu.etaxonomy.taxeditor.ui.section.user.GroupsByUserDetailSection;
|
126 |
124 |
import eu.etaxonomy.taxeditor.ui.section.user.UserDetailSection;
|
127 |
125 |
import eu.etaxonomy.taxeditor.ui.section.userecords.UseRecordDetailSection;
|
|
126 |
import eu.etaxonomy.taxeditor.ui.section.vocabulary.DefinedTermDetailSection;
|
128 |
127 |
import eu.etaxonomy.taxeditor.ui.section.vocabulary.TermVocabularyDetailSection;
|
129 |
128 |
import eu.etaxonomy.taxeditor.view.e4.AbstractCdmDataViewerE4;
|
130 |
129 |
|
... | ... | |
393 |
392 |
}
|
394 |
393 |
|
395 |
394 |
private void createGroupSection(RootElement parent) {
|
396 |
|
GroupDetailSection groupDetailSection = formFactory.createGroupDetailSection(getConversationHolder(), parent, this, ExpandableComposite.TWISTIE| ExpandableComposite.EXPANDED);
|
397 |
|
MemberDetailSection memberDetailSection = formFactory.createMemberDetailSection(getConversationHolder(), parent, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
|
398 |
|
GrantedAuthorityDetailSection grantedAuthorityDetailSection = formFactory.createGrantedAuthorityDetailSection(getConversationHolder(), parent,ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
|
|
395 |
GroupDetailSection groupDetailSection = formFactory.createGroupDetailSection(getConversationHolder(), parent, this, getSectionStyle(GroupDetailSection.class));
|
|
396 |
MemberDetailSection memberDetailSection = formFactory.createMemberDetailSection(getConversationHolder(), parent, getSectionStyle(MemberDetailSection.class));
|
|
397 |
GrantedAuthorityDetailSection grantedAuthorityDetailSection = formFactory.createGrantedAuthorityDetailSection(getConversationHolder(), parent,getSectionStyle(GrantedAuthorityDetailSection.class));
|
399 |
398 |
|
400 |
399 |
addPart(groupDetailSection);
|
401 |
400 |
addPart(memberDetailSection);
|
... | ... | |
423 |
422 |
|
424 |
423 |
private void createTaxonSections(RootElement parent) {
|
425 |
424 |
ParsingMessagesSection parsingMessagesSection = formFactory.createParsingMessagesSection(getConversationHolder(), parent, this,
|
426 |
|
ExpandableComposite.EXPANDED | ExpandableComposite.EXPANDED);
|
|
425 |
getSectionStyle(ParsingMessagesSection.class));
|
427 |
426 |
if (!PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.SHOW_SIMPLE_NAME_DETAILS_SECTION)){
|
428 |
427 |
TaxonBaseDetailSection taxonBaseDetailSection = formFactory.createTaxonBaseDetailSection(getConversationHolder(), parent, this,
|
429 |
|
ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
|
|
428 |
getSectionStyle(TaxonBaseDetailSection.class));
|
430 |
429 |
formFactory.createHorizontalSeparator(parent, SWT.BORDER);
|
431 |
430 |
addPart(taxonBaseDetailSection);
|
432 |
431 |
}else{
|
433 |
432 |
if (PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.SHOW_SIMPLE_NAME_DETAILS_TAXON)){
|
434 |
433 |
TaxonBaseDetailSection taxonBaseDetailSection = formFactory.createTaxonBaseDetailSection(getConversationHolder(), parent, this,
|
435 |
|
ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
|
|
434 |
getSectionStyle(TaxonBaseDetailSection.class));
|
436 |
435 |
formFactory.createHorizontalSeparator(parent, SWT.BORDER);
|
437 |
|
|
438 |
436 |
addPart(taxonBaseDetailSection);
|
439 |
437 |
}
|
440 |
438 |
}
|
441 |
439 |
NonViralNameDetailSection nonViralNameSection = formFactory
|
442 |
440 |
.createNonViralNameDetailSection(getConversationHolder(), parent, this, true,
|
443 |
|
ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
|
|
441 |
getSectionStyle(NonViralNameDetailSection.class));
|
444 |
442 |
formFactory.createHorizontalSeparator(parent, SWT.BORDER);
|
445 |
443 |
if (!PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.SHOW_SIMPLE_NAME_DETAILS_SECTION) || (PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.SHOW_SIMPLE_NAME_DETAILS_SECTION) && PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.SHOW_NAME_DETAILS_SECTION_NOMENCLATURAL_REFERENCE))){
|
446 |
444 |
NomenclaturalReferenceDetailSection referenceDetailSection = formFactory.createNomenclaturalReferenceDetailSection(getConversationHolder(), parent, this,
|
447 |
|
ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
|
|
445 |
getSectionStyle(NomenclaturalReferenceDetailSection.class));
|
448 |
446 |
formFactory.createHorizontalSeparator(parent, SWT.BORDER);
|
449 |
447 |
addPart(referenceDetailSection);
|
450 |
448 |
|
451 |
449 |
}
|
452 |
450 |
if ( !PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.SHOW_SIMPLE_NAME_DETAILS_SECTION) || (PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.SHOW_SIMPLE_NAME_DETAILS_SECTION) && PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.SHOW_NAME_DETAILS_SECTION_NOMENCLATURAL_STATUS))){
|
453 |
451 |
NomenclaturalStatusSection nomenclaturalStatusSection = formFactory.createNomenclaturalStatusSection(getConversationHolder(), parent,
|
454 |
|
ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
|
|
452 |
getSectionStyle(NomenclaturalStatusSection.class));
|
455 |
453 |
formFactory.createHorizontalSeparator(parent, SWT.BORDER);
|
456 |
454 |
addPart(nomenclaturalStatusSection);
|
457 |
455 |
}
|
458 |
456 |
|
459 |
457 |
if (!PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.SHOW_SIMPLE_NAME_DETAILS_SECTION) || (PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.SHOW_SIMPLE_NAME_DETAILS_SECTION) && PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.SHOW_NAME_DETAILS_SECTION_PROTOLOGUE))){
|
460 |
|
ProtologueSection protologSection = formFactory.createProtologueSection(getConversationHolder(), parent, ExpandableComposite.TWISTIE);
|
|
458 |
ProtologueSection protologSection = formFactory.createProtologueSection(getConversationHolder(), parent, getSectionStyle(ProtologueSection.class));
|
461 |
459 |
formFactory.createHorizontalSeparator(parent, SWT.BORDER);
|
462 |
460 |
addPart(protologSection);
|
463 |
461 |
}
|
464 |
462 |
|
465 |
463 |
if (!PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.SHOW_SIMPLE_NAME_DETAILS_SECTION) || (PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.SHOW_SIMPLE_NAME_DETAILS_SECTION) && PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.SHOW_NAME_DETAILS_SECTION_TYPE_DESIGNATION))){
|
466 |
|
TypeDesignationSection typeDesignationSection = formFactory.createTypeDesignationSection(getConversationHolder(), parent, ExpandableComposite.TWISTIE);
|
|
464 |
TypeDesignationSection typeDesignationSection = formFactory.createTypeDesignationSection(getConversationHolder(), parent, getSectionStyle(TypeDesignationSection.class));
|
467 |
465 |
formFactory.createHorizontalSeparator(parent, SWT.BORDER);
|
468 |
466 |
addPart(typeDesignationSection);
|
469 |
467 |
}
|
470 |
468 |
|
471 |
469 |
if (!PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.SHOW_SIMPLE_NAME_DETAILS_SECTION) || (PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.SHOW_SIMPLE_NAME_DETAILS_SECTION) && PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.SHOW_NAME_DETAILS_SECTION_NAME_RELATIONSHIP))){
|
472 |
|
NameRelationshipDetailSection nameRelationshipSection = formFactory.createNameRelationshipDetailSection(getConversationHolder(), parent, ExpandableComposite.TWISTIE);
|
|
470 |
NameRelationshipDetailSection nameRelationshipSection = formFactory.createNameRelationshipDetailSection(getConversationHolder(), parent, getSectionStyle(NameRelationshipDetailSection.class));
|
473 |
471 |
formFactory.createHorizontalSeparator(parent, SWT.BORDER);
|
474 |
472 |
addPart(nameRelationshipSection);
|
475 |
473 |
}
|
... | ... | |
483 |
481 |
|
484 |
482 |
private void createNameSections(RootElement parent) {
|
485 |
483 |
NonViralNameDetailSection nonViralNameSection = formFactory.createNonViralNameDetailSection(
|
486 |
|
getConversationHolder(), parent, this, false, ExpandableComposite.TWISTIE
|
487 |
|
| ExpandableComposite.EXPANDED);
|
|
484 |
getConversationHolder(), parent, this, false, getSectionStyle(NonViralNameDetailSection.class));
|
488 |
485 |
|
489 |
486 |
formFactory.createHorizontalSeparator(parent, SWT.BORDER);
|
490 |
487 |
|
491 |
488 |
NomenclaturalReferenceDetailSection referenceDetailSection = formFactory.createNomenclaturalReferenceDetailSection(getConversationHolder(), parent, this,
|
492 |
|
ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
|
|
489 |
getSectionStyle(NomenclaturalReferenceDetailSection.class));
|
493 |
490 |
formFactory.createHorizontalSeparator(parent, SWT.BORDER);
|
494 |
491 |
|
495 |
492 |
NomenclaturalStatusSection nomenclaturalStatusSection = formFactory.createNomenclaturalStatusSection(getConversationHolder(), parent,
|
496 |
|
ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
|
|
493 |
getSectionStyle(NomenclaturalStatusSection.class));
|
497 |
494 |
formFactory.createHorizontalSeparator(parent, SWT.BORDER);
|
498 |
495 |
|
499 |
496 |
addPart(nonViralNameSection);
|
500 |
497 |
addPart(nomenclaturalStatusSection);
|
501 |
498 |
addPart(referenceDetailSection);
|
502 |
499 |
|
503 |
|
ProtologueSection protologSection = formFactory.createProtologueSection(getConversationHolder(), parent, ExpandableComposite.TWISTIE);
|
|
500 |
ProtologueSection protologSection = formFactory.createProtologueSection(getConversationHolder(), parent, getSectionStyle(ProtologueSection.class));
|
504 |
501 |
formFactory.createHorizontalSeparator(parent, SWT.BORDER);
|
505 |
502 |
|
506 |
|
TypeDesignationSection typeDesignationSection = formFactory.createTypeDesignationSection(getConversationHolder(), parent, ExpandableComposite.TWISTIE);
|
|
503 |
TypeDesignationSection typeDesignationSection = formFactory.createTypeDesignationSection(getConversationHolder(), parent, getSectionStyle(TypeDesignationSection.class));
|
507 |
504 |
formFactory.createHorizontalSeparator(parent, SWT.BORDER);
|
508 |
505 |
|
509 |
|
NameRelationshipDetailSection nameRelationshipSection = formFactory.createNameRelationshipDetailSection(getConversationHolder(), parent, ExpandableComposite.TWISTIE);
|
|
506 |
NameRelationshipDetailSection nameRelationshipSection = formFactory.createNameRelationshipDetailSection(getConversationHolder(), parent, getSectionStyle(NameRelationshipDetailSection.class));
|
510 |
507 |
formFactory.createHorizontalSeparator(parent, SWT.BORDER);
|
511 |
508 |
addPart(protologSection);
|
512 |
509 |
addPart(typeDesignationSection);
|
... | ... | |
516 |
513 |
|
517 |
514 |
private void createReferenceSections(RootElement parent) {
|
518 |
515 |
ReferenceDetailSection referenceDetailSection = formFactory.createReferenceDetailSection(getConversationHolder(), parent, this,
|
519 |
|
ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
|
|
516 |
getSectionStyle(ReferenceDetailSection.class));
|
520 |
517 |
|
521 |
518 |
addPart(referenceDetailSection);
|
522 |
519 |
}
|
523 |
520 |
|
524 |
521 |
private void createTeamOrPersonBaseDetailSection(RootElement parent) {
|
525 |
|
TeamOrPersonBaseDetailSection teamOrPersonBaseDetailSection = formFactory.createTeamOrPersonBaseDetailSection(getConversationHolder(), parent, this, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
|
|
522 |
TeamOrPersonBaseDetailSection teamOrPersonBaseDetailSection = formFactory.createTeamOrPersonBaseDetailSection(getConversationHolder(), parent, this, getSectionStyle(TeamOrPersonBaseDetailSection.class));
|
526 |
523 |
|
527 |
524 |
addPart(teamOrPersonBaseDetailSection);
|
528 |
525 |
}
|
529 |
526 |
|
530 |
527 |
private void createTeamDetailSection(RootElement parent) {
|
531 |
|
TeamDetailSection teamDetailSection = formFactory.createTeamDetailSection(getConversationHolder(), parent, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
|
|
528 |
TeamDetailSection teamDetailSection = formFactory.createTeamDetailSection(getConversationHolder(), parent, getSectionStyle(TeamDetailSection.class));
|
532 |
529 |
|
533 |
530 |
addPart(teamDetailSection);
|
534 |
531 |
}
|
535 |
532 |
|
536 |
533 |
private void createPersonDetailSection(RootElement parent) {
|
537 |
|
PersonDetailSection personDetailSection = formFactory.createPersonDetailSection(getConversationHolder(), parent, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
|
|
534 |
PersonDetailSection personDetailSection = formFactory.createPersonDetailSection(getConversationHolder(), parent, getSectionStyle(PersonDetailSection.class));
|
538 |
535 |
addPart(personDetailSection);
|
539 |
536 |
}
|
540 |
537 |
|
541 |
538 |
private void createDescriptionElementSection(RootElement parent) {
|
542 |
|
DescriptionElementDetailSection descriptionElementDetailSection = formFactory.createDescriptionElementDetailSection(getConversationHolder(), parent, this, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
|
|
539 |
DescriptionElementDetailSection descriptionElementDetailSection = formFactory.createDescriptionElementDetailSection(getConversationHolder(), parent, this, getSectionStyle(DescriptionElementDetailSection.class));
|
543 |
540 |
descriptionElementDetailSection.setEnabled(this.detailsEnabled);
|
544 |
541 |
|
545 |
|
// IntextReferenceSection intextReferenceSection = formFactory.createIntextReferenceSection(getConversationHolder(), parent, ExpandableComposite.TWISTIE);
|
|
542 |
// IntextReferenceSection intextReferenceSection = formFactory.createIntextReferenceSection(getConversationHolder(), parent, getSectionStyle(.class));
|
546 |
543 |
|
547 |
544 |
formFactory.createHorizontalSeparator(parent, SWT.BORDER);
|
548 |
545 |
|
549 |
|
DescriptionElementSourceSection descriptionElementSourceSection = formFactory.createDescriptionElementSourceSection(getConversationHolder(), parent, ExpandableComposite.TWISTIE);
|
|
546 |
DescriptionElementSourceSection descriptionElementSourceSection = formFactory.createDescriptionElementSourceSection(getConversationHolder(), parent, getSectionStyle(DescriptionElementSourceSection.class));
|
550 |
547 |
|
551 |
548 |
formFactory.createHorizontalSeparator(parent, SWT.BORDER);
|
552 |
549 |
|
553 |
|
DescriptionElementMediaSection descriptionElementMediaSection = formFactory.createDescriptionElementMediaSection(getConversationHolder(), parent, ExpandableComposite.TWISTIE);
|
|
550 |
DescriptionElementMediaSection descriptionElementMediaSection = formFactory.createDescriptionElementMediaSection(getConversationHolder(), parent, getSectionStyle(DescriptionElementMediaSection.class));
|
554 |
551 |
|
555 |
552 |
formFactory.createHorizontalSeparator(parent, SWT.BORDER);
|
556 |
553 |
|
... | ... | |
560 |
557 |
}
|
561 |
558 |
|
562 |
559 |
private void createDescriptionSection(RootElement parent, boolean isTaxonDescription) {
|
563 |
|
DescriptionDetailSection descriptionDetailSection = formFactory.createDescriptionDetailSection(getConversationHolder(), parent, this, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
|
|
560 |
DescriptionDetailSection descriptionDetailSection = formFactory.createDescriptionDetailSection(getConversationHolder(), parent, this, getSectionStyle(DescriptionDetailSection.class));
|
564 |
561 |
addPart(descriptionDetailSection);
|
565 |
562 |
|
566 |
563 |
formFactory.createHorizontalSeparator(parent, SWT.BORDER);
|
567 |
564 |
|
568 |
565 |
if(isTaxonDescription) {
|
569 |
566 |
NaturalLanguageSection naturalLanguageSection = formFactory.createNaturalLanguageSection(
|
570 |
|
getConversationHolder(), parent, this, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
|
|
567 |
getConversationHolder(), parent, this, getSectionStyle(NaturalLanguageSection.class));
|
571 |
568 |
formFactory.createHorizontalSeparator(parent, SWT.BORDER);
|
572 |
569 |
addPart(naturalLanguageSection);
|
573 |
570 |
}
|
574 |
571 |
DescriptionSourceSection descriptionSourceSection = formFactory.createDescriptionSourceSection(
|
575 |
|
getConversationHolder(), parent, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
|
|
572 |
getConversationHolder(), parent, getSectionStyle(DescriptionSourceSection.class));
|
576 |
573 |
addPart(descriptionSourceSection);
|
577 |
574 |
|
578 |
575 |
formFactory.createHorizontalSeparator(parent, SWT.BORDER);
|
579 |
576 |
|
580 |
577 |
if(isTaxonDescription) {
|
581 |
|
ScopeSection scopeSection = formFactory.createScopeSection(getConversationHolder(), parent, ExpandableComposite.TWISTIE);
|
|
578 |
ScopeSection scopeSection = formFactory.createScopeSection(getConversationHolder(), parent, getSectionStyle(ScopeSection.class));
|
582 |
579 |
addPart(scopeSection);
|
583 |
580 |
}
|
584 |
581 |
}
|
... | ... | |
592 |
589 |
}
|
593 |
590 |
|
594 |
591 |
private void createUseDescriptionSection(RootElement parent) {
|
595 |
|
DescriptionDetailSection descriptionDetailSection = formFactory.createDescriptionDetailSection(getConversationHolder(), parent, this, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
|
|
592 |
DescriptionDetailSection descriptionDetailSection = formFactory.createDescriptionDetailSection(getConversationHolder(), parent, this, getSectionStyle(DescriptionDetailSection.class));
|
596 |
593 |
|
597 |
594 |
formFactory.createHorizontalSeparator(parent, SWT.BORDER);
|
598 |
595 |
|
599 |
|
DescriptionSourceSection descriptionSourceSection = formFactory.createDescriptionSourceSection(getConversationHolder(), parent, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
|
|
596 |
DescriptionSourceSection descriptionSourceSection = formFactory.createDescriptionSourceSection(getConversationHolder(), parent, getSectionStyle(DescriptionSourceSection.class));
|
600 |
597 |
|
601 |
598 |
formFactory.createHorizontalSeparator(parent, SWT.BORDER);
|
602 |
599 |
|
... | ... | |
606 |
603 |
}
|
607 |
604 |
|
608 |
605 |
private void createImageGallerySection(RootElement parent) {
|
609 |
|
DescriptionDetailSection descriptionDetailSection = formFactory.createDescriptionDetailSection(getConversationHolder(), parent, this, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
|
|
606 |
DescriptionDetailSection descriptionDetailSection = formFactory.createDescriptionDetailSection(getConversationHolder(), parent, this, getSectionStyle(DescriptionDetailSection.class));
|
610 |
607 |
|
611 |
608 |
addPart(descriptionDetailSection);
|
612 |
609 |
}
|
613 |
610 |
|
614 |
611 |
private void createMediaElementSection(RootElement parent) {
|
615 |
|
MediaDetailsSection mediaDetailSection = formFactory.createMediaDetailsSection(getConversationHolder(), parent, this, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
|
|
612 |
MediaDetailsSection mediaDetailSection = formFactory.createMediaDetailsSection(getConversationHolder(), parent, this, getSectionStyle(MediaDetailsSection.class));
|
616 |
613 |
|
617 |
614 |
addPart(mediaDetailSection);
|
618 |
615 |
}
|
... | ... | |
686 |
683 |
}
|
687 |
684 |
|
688 |
685 |
private void createTissueSampleSection(RootElement parent) {
|
689 |
|
TissueSampleGeneralDetailSection section = formFactory.createTissueSampleGeneralDetailSection(getConversationHolder(), parent, this, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
|
|
686 |
TissueSampleGeneralDetailSection section = formFactory.createTissueSampleGeneralDetailSection(getConversationHolder(), parent, this, getSectionStyle(TissueSampleGeneralDetailSection.class));
|
690 |
687 |
|
691 |
688 |
formFactory.createHorizontalSeparator(parent, SWT.BORDER);
|
692 |
689 |
|
693 |
|
SampleDesignationDetailSection sampleDesignationDetailSection = formFactory.createSampleDesignationDetailSection(getConversationHolder(), parent, this, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
|
|
690 |
SampleDesignationDetailSection sampleDesignationDetailSection = formFactory.createSampleDesignationDetailSection(getConversationHolder(), parent, this, getSectionStyle(SampleDesignationDetailSection.class));
|
694 |
691 |
|
695 |
692 |
addPart(section);
|
696 |
693 |
addPart(sampleDesignationDetailSection);
|
697 |
694 |
}
|
698 |
695 |
|
699 |
696 |
private void createDnaSampleSection(RootElement parent) {
|
700 |
|
DnaSampleGeneralDetailSection section = formFactory.createDnaSampleGeneralDetailSection(getConversationHolder(), parent, this, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
|
|
697 |
DnaSampleGeneralDetailSection section = formFactory.createDnaSampleGeneralDetailSection(getConversationHolder(), parent, this, getSectionStyle(DnaSampleGeneralDetailSection.class));
|
701 |
698 |
|
702 |
699 |
formFactory.createHorizontalSeparator(parent, SWT.BORDER);
|
703 |
700 |
|
704 |
|
DnaSamplePreparationPreservationSection preparationPreservationSection = formFactory.createDnaSamplePreparationPreservationSection(getConversationHolder(), parent, this, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
|
|
701 |
DnaSamplePreparationPreservationSection preparationPreservationSection = formFactory.createDnaSamplePreparationPreservationSection(getConversationHolder(), parent, this, getSectionStyle(DnaSamplePreparationPreservationSection.class));
|
705 |
702 |
|
706 |
703 |
formFactory.createHorizontalSeparator(parent, SWT.BORDER);
|
707 |
704 |
|
708 |
|
DnaQualityDetailSection qualitySection = formFactory.createDnaQualityDetailSection(getConversationHolder(), parent, this, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
|
|
705 |
DnaQualityDetailSection qualitySection = formFactory.createDnaQualityDetailSection(getConversationHolder(), parent, this, getSectionStyle(DnaQualityDetailSection.class));
|
709 |
706 |
|
710 |
707 |
formFactory.createHorizontalSeparator(parent, SWT.BORDER);
|
711 |
708 |
|
712 |
|
SampleDesignationDetailSection sampleDesignationDetailSection = formFactory.createSampleDesignationDetailSection(getConversationHolder(), parent, this, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
|
|
709 |
SampleDesignationDetailSection sampleDesignationDetailSection = formFactory.createSampleDesignationDetailSection(getConversationHolder(), parent, this, getSectionStyle(SampleDesignationDetailSection.class));
|
713 |
710 |
|
714 |
711 |
addPart(section);
|
715 |
712 |
addPart(preparationPreservationSection);
|
... | ... | |
718 |
715 |
}
|
719 |
716 |
|
720 |
717 |
private void createSequenceSection(RootElement parent) {
|
721 |
|
SequenceGeneralDetailSection section = formFactory.createSequenceGeneralDetailSection(getConversationHolder(), parent, this, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
|
|
718 |
SequenceGeneralDetailSection section = formFactory.createSequenceGeneralDetailSection(getConversationHolder(), parent, this, getSectionStyle(SequenceGeneralDetailSection.class));
|
722 |
719 |
|
723 |
720 |
formFactory.createHorizontalSeparator(parent, SWT.BORDER);
|
724 |
721 |
|
725 |
|
SequenceReferenceCollectionDetailSection referenceSection = formFactory.createSequenceReferenceCollectionDetailSection(getConversationHolder(), parent, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
|
|
722 |
SequenceReferenceCollectionDetailSection referenceSection = formFactory.createSequenceReferenceCollectionDetailSection(getConversationHolder(), parent, getSectionStyle(SequenceReferenceCollectionDetailSection.class));
|
726 |
723 |
|
727 |
724 |
formFactory.createHorizontalSeparator(parent, SWT.BORDER);
|
728 |
725 |
|
729 |
|
SequenceContigFileCollectionDetailSection contigFileSection = formFactory.createSequenceContigFileCollectionDetailSection(getConversationHolder(), parent, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
|
|
726 |
SequenceContigFileCollectionDetailSection contigFileSection = formFactory.createSequenceContigFileCollectionDetailSection(getConversationHolder(), parent, getSectionStyle(SequenceContigFileCollectionDetailSection.class));
|
730 |
727 |
|
731 |
728 |
|
732 |
729 |
addPart(section);
|
... | ... | |
735 |
732 |
}
|
736 |
733 |
|
737 |
734 |
private void createSingleReadSection(RootElement parent) {
|
738 |
|
SingleReadGeneralDetailSection section = formFactory.createSingleReadGeneralDetailSection(getConversationHolder(), parent, this, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
|
|
735 |
SingleReadGeneralDetailSection section = formFactory.createSingleReadGeneralDetailSection(getConversationHolder(), parent, this, getSectionStyle(SingleReadGeneralDetailSection.class));
|
739 |
736 |
addPart(section);
|
740 |
737 |
|
741 |
738 |
formFactory.createHorizontalSeparator(parent, SWT.BORDER);
|
742 |
739 |
|
743 |
|
SingleReadPherogramCollectionDetailSection pherogramSection = formFactory.createSingleReadPherogramCollectionDetailSection(getConversationHolder(), parent, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
|
|
740 |
SingleReadPherogramCollectionDetailSection pherogramSection = formFactory.createSingleReadPherogramCollectionDetailSection(getConversationHolder(), parent, getSectionStyle(SingleReadPherogramCollectionDetailSection.class));
|
744 |
741 |
addPart(pherogramSection);
|
745 |
742 |
|
746 |
743 |
}
|
747 |
744 |
|
748 |
745 |
private void createMediaSpecimenSection(RootElement parent) {
|
749 |
|
MediaSpecimenGeneralDetailSection generalSection = formFactory.createMediaSpecimenGeneralDetailSection(getConversationHolder(), parent, this, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
|
|
746 |
MediaSpecimenGeneralDetailSection generalSection = formFactory.createMediaSpecimenGeneralDetailSection(getConversationHolder(), parent, this, getSectionStyle(MediaSpecimenGeneralDetailSection.class));
|
750 |
747 |
addPart(generalSection);
|
751 |
748 |
|
752 |
749 |
formFactory.createHorizontalSeparator(parent, SWT.BORDER);
|
753 |
750 |
|
754 |
|
RightsSection rightsSection = formFactory.createRightsSection(getConversationHolder(), parent, ExpandableComposite.TWISTIE);
|
|
751 |
RightsSection rightsSection = formFactory.createRightsSection(getConversationHolder(), parent, getSectionStyle(RightsSection.class));
|
755 |
752 |
addPart(rightsSection);
|
756 |
753 |
|
757 |
754 |
}
|
758 |
755 |
|
759 |
756 |
private void createFeatureTreeSection(RootElement parent) {
|
760 |
|
FeatureTreeDetailSection section = formFactory.createFeatureTreeDetailSection(getConversationHolder(), parent, this, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
|
|
757 |
FeatureTreeDetailSection section = formFactory.createFeatureTreeDetailSection(getConversationHolder(), parent, this, getSectionStyle(FeatureTreeDetailSection.class));
|
761 |
758 |
|
762 |
759 |
addPart(section);
|
763 |
760 |
}
|
764 |
761 |
|
765 |
762 |
private void createFeatureNodeSection(RootElement parent) {
|
766 |
|
FeatureNodeDetailSection featureDistributionSection = formFactory.createFeatureNodeDetailSection(getConversationHolder(), parent, this, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
|
|
763 |
FeatureNodeDetailSection featureDistributionSection = formFactory.createFeatureNodeDetailSection(getConversationHolder(), parent, this, getSectionStyle(FeatureNodeDetailSection.class));
|
767 |
764 |
|
768 |
765 |
addPart(featureDistributionSection);
|
769 |
766 |
}
|
770 |
767 |
|
771 |
768 |
private void createFeatureDistributionSection(RootElement parent) {
|
772 |
|
FeatureDistributionDetailSection featureDistributionSection = formFactory.createFeatureDistributionDetailSection(getConversationHolder(), parent, this, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
|
|
769 |
FeatureDistributionDetailSection featureDistributionSection = formFactory.createFeatureDistributionDetailSection(getConversationHolder(), parent, this, getSectionStyle(FeatureDistributionDetailSection.class));
|
773 |
770 |
|
774 |
771 |
addPart(featureDistributionSection);
|
775 |
772 |
}
|
776 |
773 |
|
777 |
774 |
private void createCharacterSection(RootElement parent) {
|
778 |
|
CharacterDetailSection featureDistributionSection = formFactory.createCharacterDetailSection(getConversationHolder(), parent, this, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
|
|
775 |
CharacterDetailSection featureDistributionSection = formFactory.createCharacterDetailSection(getConversationHolder(), parent, this, getSectionStyle(CharacterDetailSection.class));
|
779 |
776 |
|
780 |
777 |
addPart(featureDistributionSection);
|
781 |
778 |
}
|
782 |
779 |
|
783 |
780 |
private void createPolytomousKeyNodeSection(RootElement parent) {
|
784 |
|
PolytomousKeyDetailSection polytomousKeyDetailSection = formFactory.createPolytomousKeyDetailSection(getConversationHolder(), parent, this, ExpandableComposite.TWISTIE);
|
|
781 |
PolytomousKeyDetailSection polytomousKeyDetailSection = formFactory.createPolytomousKeyDetailSection(getConversationHolder(), parent, this, getSectionStyle(PolytomousKeyDetailSection.class));
|
785 |
782 |
|
786 |
783 |
formFactory.createHorizontalSeparator(parent, SWT.BORDER);
|
787 |
784 |
|
788 |
|
PolytomousKeyNodeDetailSection polytomousKeyNodeDetailSection = formFactory.createPolytomousKeyNodeDetailSection(getConversationHolder(), parent, this, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
|
|
785 |
PolytomousKeyNodeDetailSection polytomousKeyNodeDetailSection = formFactory.createPolytomousKeyNodeDetailSection(getConversationHolder(), parent, this, getSectionStyle(PolytomousKeyNodeDetailSection.class));
|
789 |
786 |
|
790 |
787 |
addPart(polytomousKeyDetailSection);
|
791 |
788 |
addPart(polytomousKeyNodeDetailSection);
|
... | ... | |
793 |
790 |
}
|
794 |
791 |
|
795 |
792 |
private void createUseRecordSection(RootElement parent) {
|
796 |
|
UseRecordDetailSection descriptionUseRecordSection = formFactory.createUseRecordDetailSection(getConversationHolder(), parent, this,ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
|
|
793 |
UseRecordDetailSection descriptionUseRecordSection = formFactory.createUseRecordDetailSection(getConversationHolder(), parent, this,getSectionStyle(UseRecordDetailSection.class));
|
797 |
794 |
|
798 |
795 |
formFactory.createHorizontalSeparator(parent, SWT.BORDER);
|
799 |
796 |
|
... | ... | |
803 |
800 |
}
|
804 |
801 |
|
805 |
802 |
private void createUserSection(RootElement parent) {
|
806 |
|
UserDetailSection userDetailSection = formFactory.createUserDetailSection(getConversationHolder(), parent, this, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
|
|
803 |
UserDetailSection userDetailSection = formFactory.createUserDetailSection(getConversationHolder(), parent, this, getSectionStyle(UserDetailSection.class));
|
807 |
804 |
|
808 |
|
GroupsByUserDetailSection groupByUserDetailSection = formFactory.createGroupsByUserDetailSection(getConversationHolder(), parent, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
|
|
805 |
GroupsByUserDetailSection groupByUserDetailSection = formFactory.createGroupsByUserDetailSection(getConversationHolder(), parent, getSectionStyle(GroupsByUserDetailSection.class));
|
809 |
806 |
|
810 |
807 |
addPart(userDetailSection);
|
811 |
808 |
addPart(groupByUserDetailSection);
|
... | ... | |
813 |
810 |
|
814 |
811 |
private void createMisappliedNameSection(RootElement parent) {
|
815 |
812 |
TaxonRelationshipDetailSection taxonRelationshipDetailSection = formFactory.createTaxonRelationshipDetailSection(getConversationHolder(), parent, this,
|
816 |
|
ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
|
|
813 |
getSectionStyle(TaxonRelationshipDetailSection.class));
|
817 |
814 |
addPart(taxonRelationshipDetailSection);
|
818 |
815 |
|
819 |
816 |
formFactory.createHorizontalSeparator(parent, SWT.BORDER);
|
... | ... | |
821 |
818 |
|
822 |
819 |
NonViralNameDetailSection nonViralNameSection = formFactory
|
823 |
820 |
.createNonViralNameDetailSection(getConversationHolder(), parent, this, true,
|
824 |
|
ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
|
|
821 |
getSectionStyle(NonViralNameDetailSection.class));
|
825 |
822 |
addPart(nonViralNameSection);
|
826 |
823 |
|
827 |
824 |
formFactory.createHorizontalSeparator(parent, SWT.BORDER);
|
828 |
825 |
|
829 |
826 |
NomenclaturalReferenceDetailSection referenceDetailSection = formFactory.createNomenclaturalReferenceDetailSection(getConversationHolder(), parent, this,
|
830 |
|
ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
|
|
827 |
getSectionStyle(NomenclaturalReferenceDetailSection.class));
|
831 |
828 |
formFactory.createHorizontalSeparator(parent, SWT.BORDER);
|
832 |
829 |
addPart(referenceDetailSection);
|
833 |
830 |
|
834 |
831 |
|
835 |
832 |
NomenclaturalStatusSection nomenclaturalStatusSection = formFactory.createNomenclaturalStatusSection(getConversationHolder(), parent,
|
836 |
|
ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
|
|
833 |
getSectionStyle(NomenclaturalStatusSection.class));
|
837 |
834 |
formFactory.createHorizontalSeparator(parent, SWT.BORDER);
|
838 |
835 |
addPart(nomenclaturalStatusSection);
|
839 |
836 |
|
840 |
|
ProtologueSection protologSection = formFactory.createProtologueSection(getConversationHolder(), parent, ExpandableComposite.TWISTIE);
|
|
837 |
ProtologueSection protologSection = formFactory.createProtologueSection(getConversationHolder(), parent, getSectionStyle(ProtologueSection.class));
|
841 |
838 |
formFactory.createHorizontalSeparator(parent, SWT.BORDER);
|
842 |
839 |
addPart(protologSection);
|
843 |
840 |
|
844 |
|
TypeDesignationSection typeDesignationSection = formFactory.createTypeDesignationSection(getConversationHolder(), parent, ExpandableComposite.TWISTIE);
|
|
841 |
TypeDesignationSection typeDesignationSection = formFactory.createTypeDesignationSection(getConversationHolder(), parent, getSectionStyle(TypeDesignationSection.class));
|
845 |
842 |
formFactory.createHorizontalSeparator(parent, SWT.BORDER);
|
846 |
843 |
addPart(typeDesignationSection);
|
847 |
844 |
|
848 |
|
NameRelationshipDetailSection nameRelationshipSection = formFactory.createNameRelationshipDetailSection(getConversationHolder(), parent, ExpandableComposite.TWISTIE);
|
|
845 |
NameRelationshipDetailSection nameRelationshipSection = formFactory.createNameRelationshipDetailSection(getConversationHolder(), parent, getSectionStyle(NameRelationshipDetailSection.class));
|
849 |
846 |
formFactory.createHorizontalSeparator(parent, SWT.BORDER);
|
850 |
847 |
addPart(nameRelationshipSection);
|
851 |
848 |
|
852 |
849 |
}
|
853 |
850 |
|
854 |
851 |
private void createTaxonRelationshipSection(RootElement parent) {
|
855 |
|
TaxonRelationshipDetailSection taxonRelationshipDetailSection = formFactory.createTaxonRelationshipDetailSection(getConversationHolder(), parent, this, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
|
|
852 |
TaxonRelationshipDetailSection taxonRelationshipDetailSection = formFactory.createTaxonRelationshipDetailSection(getConversationHolder(), parent, this, getSectionStyle(TaxonRelationshipDetailSection.class));
|
856 |
853 |
|
857 |
|
ReferencedEntityDetailSection referencedEntityBaseDetailSection = formFactory.createReferencedEntityDetailSection(getConversationHolder(), parent, this, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
|
|
854 |
ReferencedEntityDetailSection referencedEntityBaseDetailSection = formFactory.createReferencedEntityDetailSection(getConversationHolder(), parent, this, getSectionStyle(ReferencedEntityDetailSection.class));
|
858 |
855 |
addPart(taxonRelationshipDetailSection);
|
859 |
856 |
addPart(referencedEntityBaseDetailSection);
|
860 |
857 |
}
|
861 |
858 |
private void createTermVocabularySection(RootElement parent) {
|
862 |
|
TermVocabularyDetailSection termVocabularyDetailSection = formFactory.createTermVocabularyDetailSection(getConversationHolder(), parent, this, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
|
|
859 |
TermVocabularyDetailSection termVocabularyDetailSection = formFactory.createTermVocabularyDetailSection(getConversationHolder(), parent, this, getSectionStyle(TermVocabularyDetailSection.class));
|
863 |
860 |
addPart(termVocabularyDetailSection);
|
864 |
861 |
}
|
865 |
862 |
|
866 |
863 |
private void createDefinedTermSection(RootElement parent) {
|
867 |
|
AbstractFormSection<?> definedTermDetailSection = formFactory.createDefinedTermDetailSection(getInput().getClass(), getConversationHolder(), parent, this, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
|
|
864 |
DefinedTermDetailSection definedTermDetailSection = formFactory.createDefinedTermDetailSection(getInput().getClass(), getConversationHolder(), parent, this, getSectionStyle(DefinedTermDetailSection.class));
|
868 |
865 |
addPart(definedTermDetailSection);
|
869 |
866 |
}
|
870 |
867 |
|
ref #6554 Evaluate expansion state for remaining elements