Project

General

Profile

Revision 362c07ab

ID362c07aba5ebcac595e841de51a71d11623dc8e8
Parent 1717c91b
Child 9f73bcfe

Added by Patrick Plitzner over 2 years ago

ref #6554 Set initial expansion state

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/e4/AbstractCdmDataViewerE4.java
171 171
		body.layout();
172 172
	}
173 173

  
174
    protected int getSectionStyle(Class<? extends AbstractFormSection> clazz){
174
	protected int getSectionStyle(Class<? extends AbstractFormSection> clazz){
175
	    return getSectionStyle(clazz, false);
176
	}
177

  
178
    protected int getSectionStyle(Class<? extends AbstractFormSection> clazz, boolean initiallyExpanded){
175 179
        int style = ExpandableComposite.TWISTIE;
176
        if(PreferencesUtil.getPreferenceStore().getBoolean(StoreUtil.getPrefKey(clazz, getInput()))){
180
        if(PreferencesUtil.getPreferenceStore().getBoolean(StoreUtil.getPrefKey(clazz, getInput()))
181
                || initiallyExpanded){
177 182
            style |= ExpandableComposite.EXPANDED;
178 183
        }
179 184
        return style;
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/e4/details/DetailsViewerE4.java
424 424

  
425 425
    private void createTaxonSections(RootElement parent) {
426 426
        ParsingMessagesSection parsingMessagesSection = formFactory.createParsingMessagesSection(getConversationHolder(), parent, this,
427
                getSectionStyle(ParsingMessagesSection.class));
427
                getSectionStyle(ParsingMessagesSection.class, true));
428 428
        if (!PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.SHOW_SIMPLE_NAME_DETAILS_SECTION)){
429 429
            TaxonBaseDetailSection taxonBaseDetailSection = formFactory.createTaxonBaseDetailSection(getConversationHolder(), parent, this,
430
                    getSectionStyle(TaxonBaseDetailSection.class));
430
                    getSectionStyle(TaxonBaseDetailSection.class, true));
431 431
            formFactory.createHorizontalSeparator(parent, SWT.BORDER);
432 432
            addPart(taxonBaseDetailSection);
433 433
        }else{
434 434
            if (PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.SHOW_SIMPLE_NAME_DETAILS_TAXON)){
435 435
                TaxonBaseDetailSection taxonBaseDetailSection = formFactory.createTaxonBaseDetailSection(getConversationHolder(), parent, this,
436
                        getSectionStyle(TaxonBaseDetailSection.class));
436
                        getSectionStyle(TaxonBaseDetailSection.class, true));
437 437
                formFactory.createHorizontalSeparator(parent, SWT.BORDER);
438 438
                addPart(taxonBaseDetailSection);
439 439
            }
440 440
        }
441 441
        NonViralNameDetailSection nonViralNameSection = formFactory
442 442
                .createNonViralNameDetailSection(getConversationHolder(), parent, this, true,
443
                        getSectionStyle(NonViralNameDetailSection.class));
443
                        getSectionStyle(NonViralNameDetailSection.class, true));
444 444
        formFactory.createHorizontalSeparator(parent, SWT.BORDER);
445 445
        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 446
            NomenclaturalReferenceDetailSection referenceDetailSection = formFactory.createNomenclaturalReferenceDetailSection(getConversationHolder(), parent, this,
447
                    getSectionStyle(NomenclaturalReferenceDetailSection.class));
447
                    getSectionStyle(NomenclaturalReferenceDetailSection.class, true));
448 448
            formFactory.createHorizontalSeparator(parent, SWT.BORDER);
449 449
            addPart(referenceDetailSection);
450 450

  
451 451
        }
452 452
        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 453
            NomenclaturalStatusSection nomenclaturalStatusSection = formFactory.createNomenclaturalStatusSection(getConversationHolder(), parent,
454
                    getSectionStyle(NomenclaturalStatusSection.class));
454
                    getSectionStyle(NomenclaturalStatusSection.class, true));
455 455
            formFactory.createHorizontalSeparator(parent, SWT.BORDER);
456 456
            addPart(nomenclaturalStatusSection);
457 457
        }
......
483 483

  
484 484
    private void createNameSections(RootElement parent) {
485 485
        NonViralNameDetailSection nonViralNameSection = formFactory.createNonViralNameDetailSection(
486
                getConversationHolder(), parent, this, false, getSectionStyle(NonViralNameDetailSection.class));
486
                getConversationHolder(), parent, this, false, getSectionStyle(NonViralNameDetailSection.class, true));
487 487

  
488 488
        formFactory.createHorizontalSeparator(parent, SWT.BORDER);
489 489

  
490 490
        NomenclaturalReferenceDetailSection referenceDetailSection = formFactory.createNomenclaturalReferenceDetailSection(getConversationHolder(), parent, this,
491
                getSectionStyle(NomenclaturalReferenceDetailSection.class));
491
                getSectionStyle(NomenclaturalReferenceDetailSection.class, true));
492 492
        formFactory.createHorizontalSeparator(parent, SWT.BORDER);
493 493

  
494 494
        NomenclaturalStatusSection nomenclaturalStatusSection = formFactory.createNomenclaturalStatusSection(getConversationHolder(), parent,
495
                getSectionStyle(NomenclaturalStatusSection.class));
495
                getSectionStyle(NomenclaturalStatusSection.class, true));
496 496
        formFactory.createHorizontalSeparator(parent, SWT.BORDER);
497 497

  
498 498
        addPart(nonViralNameSection);
......
515 515

  
516 516
    private void createReferenceSections(RootElement parent) {
517 517
        ReferenceDetailSection referenceDetailSection = formFactory.createReferenceDetailSection(getConversationHolder(), parent, this,
518
                getSectionStyle(ReferenceDetailSection.class));
518
                getSectionStyle(ReferenceDetailSection.class, true));
519 519

  
520 520
        addPart(referenceDetailSection);
521 521
    }
522 522

  
523 523
    private void createTeamOrPersonBaseDetailSection(RootElement parent) {
524
        TeamOrPersonBaseDetailSection teamOrPersonBaseDetailSection = formFactory.createTeamOrPersonBaseDetailSection(getConversationHolder(), parent, this, getSectionStyle(TeamOrPersonBaseDetailSection.class));
524
        TeamOrPersonBaseDetailSection teamOrPersonBaseDetailSection = formFactory.createTeamOrPersonBaseDetailSection(getConversationHolder(), parent, this, getSectionStyle(TeamOrPersonBaseDetailSection.class, true));
525 525

  
526 526
        addPart(teamOrPersonBaseDetailSection);
527 527
    }
528 528

  
529 529
    private void createTeamDetailSection(RootElement parent) {
530
        TeamDetailSection teamDetailSection = formFactory.createTeamDetailSection(getConversationHolder(), parent, getSectionStyle(TeamDetailSection.class));
530
        TeamDetailSection teamDetailSection = formFactory.createTeamDetailSection(getConversationHolder(), parent, getSectionStyle(TeamDetailSection.class, true));
531 531

  
532 532
        addPart(teamDetailSection);
533 533
    }
534 534

  
535 535
    private void createPersonDetailSection(RootElement parent) {
536
        PersonDetailSection personDetailSection = formFactory.createPersonDetailSection(getConversationHolder(), parent, getSectionStyle(PersonDetailSection.class));
536
        PersonDetailSection personDetailSection = formFactory.createPersonDetailSection(getConversationHolder(), parent, getSectionStyle(PersonDetailSection.class, true));
537 537
        addPart(personDetailSection);
538 538
    }
539 539

  
540 540
    private void createDescriptionElementSection(RootElement parent) {
541
        DescriptionElementDetailSection descriptionElementDetailSection = formFactory.createDescriptionElementDetailSection(getConversationHolder(), parent, this, getSectionStyle(DescriptionElementDetailSection.class));
541
        DescriptionElementDetailSection descriptionElementDetailSection = formFactory.createDescriptionElementDetailSection(getConversationHolder(), parent, this, getSectionStyle(DescriptionElementDetailSection.class, true));
542 542
        descriptionElementDetailSection.setEnabled(this.detailsEnabled);
543 543

  
544 544
        //  IntextReferenceSection intextReferenceSection = formFactory.createIntextReferenceSection(getConversationHolder(), parent,  getSectionStyle(.class));
......
559 559
    }
560 560

  
561 561
    private void createDescriptionSection(RootElement parent, boolean isTaxonDescription) {
562
        DescriptionDetailSection descriptionDetailSection = formFactory.createDescriptionDetailSection(getConversationHolder(), parent, this, getSectionStyle(DescriptionDetailSection.class));
562
        DescriptionDetailSection descriptionDetailSection = formFactory.createDescriptionDetailSection(getConversationHolder(), parent, this, getSectionStyle(DescriptionDetailSection.class, true));
563 563
        addPart(descriptionDetailSection);
564 564

  
565 565
        formFactory.createHorizontalSeparator(parent, SWT.BORDER);
566 566

  
567 567
        if(isTaxonDescription) {
568 568
            NaturalLanguageSection naturalLanguageSection = formFactory.createNaturalLanguageSection(
569
                    getConversationHolder(), parent, this, getSectionStyle(NaturalLanguageSection.class));
569
                    getConversationHolder(), parent, this, getSectionStyle(NaturalLanguageSection.class, true));
570 570
            formFactory.createHorizontalSeparator(parent, SWT.BORDER);
571 571
            addPart(naturalLanguageSection);
572 572
        }
573 573
        DescriptionSourceSection descriptionSourceSection = formFactory.createDescriptionSourceSection(
574
                getConversationHolder(), parent, getSectionStyle(DescriptionSourceSection.class));
574
                getConversationHolder(), parent, getSectionStyle(DescriptionSourceSection.class, true));
575 575
        addPart(descriptionSourceSection);
576 576

  
577 577
        formFactory.createHorizontalSeparator(parent, SWT.BORDER);
......
617 617
    }
618 618

  
619 619
    private void createDerivedUnitBaseElementSection(RootElement parent) {
620
        DerivedUnitGeneralDetailSection derivedUnitGeneralDetailSection = formFactory.createDerivedUnitGeneralDetailSection(getConversationHolder(), parent, this, getSectionStyle(DerivedUnitGeneralDetailSection.class));
620
        DerivedUnitGeneralDetailSection derivedUnitGeneralDetailSection = formFactory.createDerivedUnitGeneralDetailSection(getConversationHolder(), parent, this, getSectionStyle(DerivedUnitGeneralDetailSection.class, true));
621 621
        //TODO for DerivateEditor do not use facade anymore to avoid this special case handling #4539
622 622
        if(!(AbstractUtility.getActivePart() instanceof IDerivedUnitFacadePart)){
623 623
            derivedUnitGeneralDetailSection.setShowOnlyDerivedUnitData(true);
......
626 626

  
627 627
        formFactory.createHorizontalSeparator(parent, SWT.BORDER);
628 628

  
629
        DerivedUnitBaseDetailSection derivedUnitBaseDetailSection = formFactory.createDerivedUnitBaseDetailSection(getConversationHolder(), parent, this, getSectionStyle(DerivedUnitBaseDetailSection.class));
629
        DerivedUnitBaseDetailSection derivedUnitBaseDetailSection = formFactory.createDerivedUnitBaseDetailSection(getConversationHolder(), parent, this, getSectionStyle(DerivedUnitBaseDetailSection.class, true));
630 630
        addPart(derivedUnitBaseDetailSection);
631 631

  
632 632
        //for editors working with facades
......
643 643

  
644 644
            if(PreferencesUtil.isShowTaxonAssociations()){
645 645
                formFactory.createHorizontalSeparator(parent, SWT.BORDER);
646
                TaxonAssociationDetailSection taxonAssociationDetailSection = formFactory.createTaxonAssociationDetailSection(getConversationHolder(), parent, this, getSectionStyle(TaxonAssociationDetailSection.class));
646
                TaxonAssociationDetailSection taxonAssociationDetailSection = formFactory.createTaxonAssociationDetailSection(getConversationHolder(), parent, this, getSectionStyle(TaxonAssociationDetailSection.class, true));
647 647
                addPart(taxonAssociationDetailSection);
648 648
            }
649 649
            formFactory.createHorizontalSeparator(parent, SWT.BORDER);
......
663 663
    }
664 664

  
665 665
    private void createFieldUnitSection(RootElement parent) {
666
        FieldUnitGeneralDetailSection fielUnitGeneralDetailSection = formFactory.createFieldUnitGeneralDetailSection(getConversationHolder(), parent, this, getSectionStyle(FieldUnitGeneralDetailSection.class));
666
        FieldUnitGeneralDetailSection fielUnitGeneralDetailSection = formFactory.createFieldUnitGeneralDetailSection(getConversationHolder(), parent, this, getSectionStyle(FieldUnitGeneralDetailSection.class, true));
667 667

  
668 668
        formFactory.createHorizontalSeparator(parent, SWT.BORDER);
669 669

  
......
685 685
    }
686 686

  
687 687
    private void createTissueSampleSection(RootElement parent) {
688
        TissueSampleGeneralDetailSection section = formFactory.createTissueSampleGeneralDetailSection(getConversationHolder(), parent, this, getSectionStyle(TissueSampleGeneralDetailSection.class));
688
        TissueSampleGeneralDetailSection section = formFactory.createTissueSampleGeneralDetailSection(getConversationHolder(), parent, this, getSectionStyle(TissueSampleGeneralDetailSection.class, true));
689 689

  
690 690
        formFactory.createHorizontalSeparator(parent, SWT.BORDER);
691 691

  
692
        SampleDesignationDetailSection sampleDesignationDetailSection = formFactory.createSampleDesignationDetailSection(getConversationHolder(), parent, this, getSectionStyle(SampleDesignationDetailSection.class));
692
        SampleDesignationDetailSection sampleDesignationDetailSection = formFactory.createSampleDesignationDetailSection(getConversationHolder(), parent, this, getSectionStyle(SampleDesignationDetailSection.class, true));
693 693

  
694 694
        addPart(section);
695 695
        addPart(sampleDesignationDetailSection);
696 696
    }
697 697

  
698 698
    private void createDnaSampleSection(RootElement parent) {
699
        DnaSampleGeneralDetailSection section = formFactory.createDnaSampleGeneralDetailSection(getConversationHolder(), parent, this, getSectionStyle(DnaSampleGeneralDetailSection.class));
699
        DnaSampleGeneralDetailSection section = formFactory.createDnaSampleGeneralDetailSection(getConversationHolder(), parent, this, getSectionStyle(DnaSampleGeneralDetailSection.class, true));
700 700

  
701 701
        formFactory.createHorizontalSeparator(parent, SWT.BORDER);
702 702

  
703
        DnaSamplePreparationPreservationSection preparationPreservationSection = formFactory.createDnaSamplePreparationPreservationSection(getConversationHolder(), parent, this, getSectionStyle(DnaSamplePreparationPreservationSection.class));
703
        DnaSamplePreparationPreservationSection preparationPreservationSection = formFactory.createDnaSamplePreparationPreservationSection(getConversationHolder(), parent, this, getSectionStyle(DnaSamplePreparationPreservationSection.class, true));
704 704

  
705 705
        formFactory.createHorizontalSeparator(parent, SWT.BORDER);
706 706

  
707
        DnaQualityDetailSection qualitySection = formFactory.createDnaQualityDetailSection(getConversationHolder(), parent, this, getSectionStyle(DnaQualityDetailSection.class));
707
        DnaQualityDetailSection qualitySection = formFactory.createDnaQualityDetailSection(getConversationHolder(), parent, this, getSectionStyle(DnaQualityDetailSection.class, true));
708 708

  
709 709
        formFactory.createHorizontalSeparator(parent, SWT.BORDER);
710 710

  
711
        SampleDesignationDetailSection sampleDesignationDetailSection = formFactory.createSampleDesignationDetailSection(getConversationHolder(), parent, this, getSectionStyle(SampleDesignationDetailSection.class));
711
        SampleDesignationDetailSection sampleDesignationDetailSection = formFactory.createSampleDesignationDetailSection(getConversationHolder(), parent, this, getSectionStyle(SampleDesignationDetailSection.class, true));
712 712

  
713 713
        addPart(section);
714 714
        addPart(preparationPreservationSection);
......
717 717
    }
718 718

  
719 719
    private void createSequenceSection(RootElement parent) {
720
        SequenceGeneralDetailSection section = formFactory.createSequenceGeneralDetailSection(getConversationHolder(), parent, this, getSectionStyle(SequenceGeneralDetailSection.class));
720
        SequenceGeneralDetailSection section = formFactory.createSequenceGeneralDetailSection(getConversationHolder(), parent, this, getSectionStyle(SequenceGeneralDetailSection.class, true));
721 721

  
722 722
        formFactory.createHorizontalSeparator(parent, SWT.BORDER);
723 723

  
724
        SequenceReferenceCollectionDetailSection referenceSection = formFactory.createSequenceReferenceCollectionDetailSection(getConversationHolder(), parent, getSectionStyle(SequenceReferenceCollectionDetailSection.class));
724
        SequenceReferenceCollectionDetailSection referenceSection = formFactory.createSequenceReferenceCollectionDetailSection(getConversationHolder(), parent, getSectionStyle(SequenceReferenceCollectionDetailSection.class, true));
725 725

  
726 726
        formFactory.createHorizontalSeparator(parent, SWT.BORDER);
727 727

  
728
        SequenceContigFileCollectionDetailSection contigFileSection = formFactory.createSequenceContigFileCollectionDetailSection(getConversationHolder(), parent, getSectionStyle(SequenceContigFileCollectionDetailSection.class));
728
        SequenceContigFileCollectionDetailSection contigFileSection = formFactory.createSequenceContigFileCollectionDetailSection(getConversationHolder(), parent, getSectionStyle(SequenceContigFileCollectionDetailSection.class, true));
729 729

  
730 730

  
731 731
        addPart(section);
......
734 734
    }
735 735

  
736 736
    private void createSingleReadSection(RootElement parent) {
737
        SingleReadGeneralDetailSection section = formFactory.createSingleReadGeneralDetailSection(getConversationHolder(), parent, this, getSectionStyle(SingleReadGeneralDetailSection.class));
737
        SingleReadGeneralDetailSection section = formFactory.createSingleReadGeneralDetailSection(getConversationHolder(), parent, this, getSectionStyle(SingleReadGeneralDetailSection.class, true));
738 738
        addPart(section);
739 739

  
740 740
        formFactory.createHorizontalSeparator(parent, SWT.BORDER);
741 741

  
742
        SingleReadPherogramCollectionDetailSection pherogramSection = formFactory.createSingleReadPherogramCollectionDetailSection(getConversationHolder(), parent, getSectionStyle(SingleReadPherogramCollectionDetailSection.class));
742
        SingleReadPherogramCollectionDetailSection pherogramSection = formFactory.createSingleReadPherogramCollectionDetailSection(getConversationHolder(), parent, getSectionStyle(SingleReadPherogramCollectionDetailSection.class, true));
743 743
        addPart(pherogramSection);
744 744

  
745 745
    }
746 746

  
747 747
    private void createMediaSpecimenSection(RootElement parent) {
748
        MediaSpecimenGeneralDetailSection generalSection = formFactory.createMediaSpecimenGeneralDetailSection(getConversationHolder(), parent, this, getSectionStyle(MediaSpecimenGeneralDetailSection.class));
748
        MediaSpecimenGeneralDetailSection generalSection = formFactory.createMediaSpecimenGeneralDetailSection(getConversationHolder(), parent, this, getSectionStyle(MediaSpecimenGeneralDetailSection.class, true));
749 749
        addPart(generalSection);
750 750

  
751 751
        formFactory.createHorizontalSeparator(parent, SWT.BORDER);
......
756 756
    }
757 757

  
758 758
    private void createFeatureTreeSection(RootElement parent) {
759
        FeatureTreeDetailSection section = formFactory.createFeatureTreeDetailSection(getConversationHolder(), parent, this, getSectionStyle(FeatureTreeDetailSection.class));
759
        FeatureTreeDetailSection section = formFactory.createFeatureTreeDetailSection(getConversationHolder(), parent, this, getSectionStyle(FeatureTreeDetailSection.class, true));
760 760

  
761 761
        addPart(section);
762 762
    }
763 763

  
764 764
    private void createFeatureNodeSection(RootElement parent) {
765
        FeatureNodeDetailSection featureDistributionSection = formFactory.createFeatureNodeDetailSection(getConversationHolder(), parent, this, getSectionStyle(FeatureNodeDetailSection.class));
765
        FeatureNodeDetailSection featureDistributionSection = formFactory.createFeatureNodeDetailSection(getConversationHolder(), parent, this, getSectionStyle(FeatureNodeDetailSection.class, true));
766 766

  
767 767
        addPart(featureDistributionSection);
768 768
    }
769 769

  
770 770
    private void createFeatureDistributionSection(RootElement parent) {
771
        FeatureDistributionDetailSection featureDistributionSection = formFactory.createFeatureDistributionDetailSection(getConversationHolder(), parent, this, getSectionStyle(FeatureDistributionDetailSection.class));
771
        FeatureDistributionDetailSection featureDistributionSection = formFactory.createFeatureDistributionDetailSection(getConversationHolder(), parent, this, getSectionStyle(FeatureDistributionDetailSection.class, true));
772 772

  
773 773
        addPart(featureDistributionSection);
774 774
    }
775 775

  
776 776
    private void createCharacterSection(RootElement parent) {
777
        CharacterDetailSection featureDistributionSection = formFactory.createCharacterDetailSection(getConversationHolder(), parent, this, getSectionStyle(CharacterDetailSection.class));
777
        CharacterDetailSection featureDistributionSection = formFactory.createCharacterDetailSection(getConversationHolder(), parent, this, getSectionStyle(CharacterDetailSection.class, true));
778 778

  
779 779
        addPart(featureDistributionSection);
780 780
    }
......
784 784

  
785 785
        formFactory.createHorizontalSeparator(parent, SWT.BORDER);
786 786

  
787
        PolytomousKeyNodeDetailSection polytomousKeyNodeDetailSection = formFactory.createPolytomousKeyNodeDetailSection(getConversationHolder(), parent, this, getSectionStyle(PolytomousKeyNodeDetailSection.class));
787
        PolytomousKeyNodeDetailSection polytomousKeyNodeDetailSection = formFactory.createPolytomousKeyNodeDetailSection(getConversationHolder(), parent, this, getSectionStyle(PolytomousKeyNodeDetailSection.class, true));
788 788

  
789 789
        addPart(polytomousKeyDetailSection);
790 790
        addPart(polytomousKeyNodeDetailSection);
......
792 792
    }
793 793

  
794 794
    private void createUseRecordSection(RootElement parent) {
795
        UseRecordDetailSection descriptionUseRecordSection = formFactory.createUseRecordDetailSection(getConversationHolder(), parent, this,getSectionStyle(UseRecordDetailSection.class));
795
        UseRecordDetailSection descriptionUseRecordSection = formFactory.createUseRecordDetailSection(getConversationHolder(), parent, this,getSectionStyle(UseRecordDetailSection.class, true));
796 796

  
797 797
        formFactory.createHorizontalSeparator(parent, SWT.BORDER);
798 798

  
......
802 802
    }
803 803

  
804 804
    private void createUserSection(RootElement parent) {
805
        UserDetailSection userDetailSection = formFactory.createUserDetailSection(getConversationHolder(), parent, this, getSectionStyle(UserDetailSection.class));
805
        UserDetailSection userDetailSection = formFactory.createUserDetailSection(getConversationHolder(), parent, this, getSectionStyle(UserDetailSection.class, true));
806 806

  
807
        GroupsByUserDetailSection groupByUserDetailSection = formFactory.createGroupsByUserDetailSection(getConversationHolder(), parent, getSectionStyle(GroupsByUserDetailSection.class));
807
        GroupsByUserDetailSection groupByUserDetailSection = formFactory.createGroupsByUserDetailSection(getConversationHolder(), parent, getSectionStyle(GroupsByUserDetailSection.class, true));
808 808

  
809 809
        addPart(userDetailSection);
810 810
        addPart(groupByUserDetailSection);
......
812 812

  
813 813
    private void createMisappliedNameSection(RootElement parent) {
814 814
        TaxonRelationshipDetailSection taxonRelationshipDetailSection = formFactory.createTaxonRelationshipDetailSection(getConversationHolder(), parent, this,
815
                getSectionStyle(TaxonRelationshipDetailSection.class));
815
                getSectionStyle(TaxonRelationshipDetailSection.class, true));
816 816
        addPart(taxonRelationshipDetailSection);
817 817

  
818 818
        formFactory.createHorizontalSeparator(parent, SWT.BORDER);
......
820 820

  
821 821
        NonViralNameDetailSection nonViralNameSection = formFactory
822 822
                .createNonViralNameDetailSection(getConversationHolder(), parent, this, true,
823
                        getSectionStyle(NonViralNameDetailSection.class));
823
                        getSectionStyle(NonViralNameDetailSection.class, true));
824 824
        addPart(nonViralNameSection);
825 825

  
826 826
        formFactory.createHorizontalSeparator(parent, SWT.BORDER);
827 827

  
828 828
        NomenclaturalReferenceDetailSection referenceDetailSection = formFactory.createNomenclaturalReferenceDetailSection(getConversationHolder(), parent, this,
829
                getSectionStyle(NomenclaturalReferenceDetailSection.class));
829
                getSectionStyle(NomenclaturalReferenceDetailSection.class, true));
830 830
        formFactory.createHorizontalSeparator(parent, SWT.BORDER);
831 831
        addPart(referenceDetailSection);
832 832

  
833 833

  
834 834
        NomenclaturalStatusSection nomenclaturalStatusSection = formFactory.createNomenclaturalStatusSection(getConversationHolder(), parent,
835
            		getSectionStyle(NomenclaturalStatusSection.class));
835
            		getSectionStyle(NomenclaturalStatusSection.class, true));
836 836
        formFactory.createHorizontalSeparator(parent, SWT.BORDER);
837 837
        addPart(nomenclaturalStatusSection);
838 838

  
......
851 851
    }
852 852

  
853 853
    private void createTaxonRelationshipSection(RootElement parent) {
854
        TaxonRelationshipDetailSection taxonRelationshipDetailSection = formFactory.createTaxonRelationshipDetailSection(getConversationHolder(), parent, this, getSectionStyle(TaxonRelationshipDetailSection.class));
854
        TaxonRelationshipDetailSection taxonRelationshipDetailSection = formFactory.createTaxonRelationshipDetailSection(getConversationHolder(), parent, this, getSectionStyle(TaxonRelationshipDetailSection.class, true));
855 855

  
856
        ReferencedEntityDetailSection referencedEntityBaseDetailSection = formFactory.createReferencedEntityDetailSection(getConversationHolder(), parent, this, getSectionStyle(ReferencedEntityDetailSection.class));
856
        ReferencedEntityDetailSection referencedEntityBaseDetailSection = formFactory.createReferencedEntityDetailSection(getConversationHolder(), parent, this, getSectionStyle(ReferencedEntityDetailSection.class, true));
857 857
        addPart(taxonRelationshipDetailSection);
858 858
        addPart(referencedEntityBaseDetailSection);
859 859
    }
860 860
    private void createTermVocabularySection(RootElement parent) {
861
        TermVocabularyDetailSection termVocabularyDetailSection = formFactory.createTermVocabularyDetailSection(getConversationHolder(), parent, this, getSectionStyle(TermVocabularyDetailSection.class));
861
        TermVocabularyDetailSection termVocabularyDetailSection = formFactory.createTermVocabularyDetailSection(getConversationHolder(), parent, this, getSectionStyle(TermVocabularyDetailSection.class, true));
862 862
        addPart(termVocabularyDetailSection);
863 863
    }
864 864

  
865 865
    private void createDefinedTermSection(RootElement parent) {
866
        DefinedTermDetailSection definedTermDetailSection = formFactory.createDefinedTermDetailSection(getInput().getClass(), getConversationHolder(), parent, this, getSectionStyle(DefinedTermDetailSection.class));
866
        DefinedTermDetailSection definedTermDetailSection = formFactory.createDefinedTermDetailSection(getInput().getClass(), getConversationHolder(), parent, this, getSectionStyle(DefinedTermDetailSection.class, true));
867 867
        addPart(definedTermDetailSection);
868 868
    }
869 869

  

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)