Project

General

Profile

« Previous | Next » 

Revision 544be2e6

Added by Katja Luther almost 5 years ago

ref #8260: save expansion state for supplemental data

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/e4/supplementaldata/SupplementalDataViewerE4.java
114 114
	}
115 115

  
116 116
	private void createSourceSection(RootElement parent){
117
        SourceSection sourceSection =  formFactory.createSourceSection(getConversationHolder(), parent, ExpandableComposite.TWISTIE);
117
	    int expandStyle = getSectionStyle(SourceSection.class, false);
118
        SourceSection sourceSection =  formFactory.createSourceSection(getConversationHolder(), parent, expandStyle);
118 119
        formFactory.createHorizontalSeparator(parent, SWT.BORDER);
119 120
        addPart(sourceSection);
120 121
    }
121 122

  
122 123
    private void createAnnotationSections(RootElement parent) {
123
        AnnotationSection annotationSection = formFactory.createAnnotationSection(getConversationHolder(), parent, ExpandableComposite.TWISTIE);
124
        int expandStyle = getSectionStyle(AnnotationSection.class, false);
125
        AnnotationSection annotationSection = formFactory.createAnnotationSection(getConversationHolder(), parent, expandStyle);
124 126

  
125 127
        formFactory.createHorizontalSeparator(parent, SWT.BORDER);
126

  
128
        expandStyle = getSectionStyle(MarkerSection.class, false);
127 129
        MarkerSection markerSection = formFactory.createMarkerSection(getConversationHolder(), parent, ExpandableComposite.TWISTIE);
128 130

  
129 131
        formFactory.createHorizontalSeparator(parent, SWT.BORDER);
......
133 135
    }
134 136

  
135 137
    private void createIdentifiableSections(RootElement parent) {
136

  
137
        SourceSection sourceSection = formFactory.createSourceSection(getConversationHolder(), parent, ExpandableComposite.TWISTIE);
138
        int expandStyle = getSectionStyle(SourceSection.class, false);
139
        SourceSection sourceSection = formFactory.createSourceSection(getConversationHolder(), parent, expandStyle);
138 140

  
139 141
        formFactory.createHorizontalSeparator(parent, SWT.BORDER);
140

  
141
        IdentifierSection identifierSection = formFactory.createIdentifierDetailSection(getConversationHolder(), parent, ExpandableComposite.TWISTIE);
142
        expandStyle =  getSectionStyle(IdentifierSection.class, false);
143
        IdentifierSection identifierSection = formFactory.createIdentifierDetailSection(getConversationHolder(), parent, expandStyle);
142 144

  
143 145
        formFactory.createHorizontalSeparator(parent, SWT.BORDER);
144

  
145
        ExtensionSection extensionSection = formFactory.createExtensionSection(getConversationHolder(), parent, ExpandableComposite.TWISTIE);
146
        expandStyle =  getSectionStyle(ExtensionSection.class, false);
147
        ExtensionSection extensionSection = formFactory.createExtensionSection(getConversationHolder(), parent, expandStyle);
146 148

  
147 149
        formFactory.createHorizontalSeparator(parent, SWT.BORDER);
148

  
149
        CreditSection creditSection = formFactory.createCreditSection(getConversationHolder(), parent, ExpandableComposite.TWISTIE);
150
        expandStyle =  getSectionStyle(CreditSection.class, false);
151
        CreditSection creditSection = formFactory.createCreditSection(getConversationHolder(), parent, expandStyle);
150 152

  
151 153
        formFactory.createHorizontalSeparator(parent, SWT.BORDER);
152

  
153
        RightsSection rightsSection = formFactory.createRightsSection(getConversationHolder(), parent, ExpandableComposite.TWISTIE);
154
        expandStyle =  getSectionStyle(RightsSection.class, false);
155
        RightsSection rightsSection = formFactory.createRightsSection(getConversationHolder(), parent, expandStyle);
154 156

  
155 157
        formFactory.createHorizontalSeparator(parent, SWT.BORDER);
156 158

  
......
163 165
	}
164 166

  
165 167
    private void createIdentifiableMediaSections(RootElement parent) {
166
        MediaSection mediaSection = formFactory.createMediaSection(getConversationHolder(), parent, ExpandableComposite.TWISTIE);
168
        int expandStyle = getSectionStyle(MediaSection.class, false);
169
        MediaSection mediaSection = formFactory.createMediaSection(getConversationHolder(), parent, expandStyle);
167 170

  
168 171
        formFactory.createHorizontalSeparator(parent, SWT.BORDER);
169 172

  

Also available in: Unified diff