Revision 175fef3e
Added by Katja Luther almost 5 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/e4/supplementaldata/SupplementalDataViewerE4.java | ||
---|---|---|
113 | 113 |
} |
114 | 114 |
|
115 | 115 |
private void createSourceSection(RootElement parent){ |
116 |
SourceSection sourceSection = formFactory.createSourceSection(getConversationHolder(), parent, ExpandableComposite.TWISTIE); |
|
116 |
int expandStyle = getSectionStyle(SourceSection.class, false); |
|
117 |
SourceSection sourceSection = formFactory.createSourceSection(getConversationHolder(), parent, expandStyle); |
|
117 | 118 |
formFactory.createHorizontalSeparator(parent, SWT.BORDER); |
118 | 119 |
addPart(sourceSection); |
119 | 120 |
} |
120 | 121 |
|
121 | 122 |
private void createAnnotationSections(RootElement parent) { |
122 |
AnnotationSection annotationSection = formFactory.createAnnotationSection(getConversationHolder(), parent, ExpandableComposite.TWISTIE); |
|
123 |
int expandStyle = getSectionStyle(AnnotationSection.class, false); |
|
124 |
AnnotationSection annotationSection = formFactory.createAnnotationSection(getConversationHolder(), parent, expandStyle); |
|
123 | 125 |
|
124 | 126 |
formFactory.createHorizontalSeparator(parent, SWT.BORDER); |
125 |
|
|
127 |
expandStyle = getSectionStyle(MarkerSection.class, false); |
|
126 | 128 |
MarkerSection markerSection = formFactory.createMarkerSection(getConversationHolder(), parent, ExpandableComposite.TWISTIE); |
127 | 129 |
|
128 | 130 |
formFactory.createHorizontalSeparator(parent, SWT.BORDER); |
... | ... | |
132 | 134 |
} |
133 | 135 |
|
134 | 136 |
private void createIdentifiableSections(RootElement parent) { |
135 |
|
|
136 |
SourceSection sourceSection = formFactory.createSourceSection(getConversationHolder(), parent, ExpandableComposite.TWISTIE);
|
|
137 |
int expandStyle = getSectionStyle(SourceSection.class, false); |
|
138 |
SourceSection sourceSection = formFactory.createSourceSection(getConversationHolder(), parent, expandStyle);
|
|
137 | 139 |
|
138 | 140 |
formFactory.createHorizontalSeparator(parent, SWT.BORDER); |
139 |
|
|
140 |
IdentifierSection identifierSection = formFactory.createIdentifierDetailSection(getConversationHolder(), parent, ExpandableComposite.TWISTIE);
|
|
141 |
expandStyle = getSectionStyle(IdentifierSection.class, false); |
|
142 |
IdentifierSection identifierSection = formFactory.createIdentifierDetailSection(getConversationHolder(), parent, expandStyle);
|
|
141 | 143 |
|
142 | 144 |
formFactory.createHorizontalSeparator(parent, SWT.BORDER); |
143 |
|
|
144 |
ExtensionSection extensionSection = formFactory.createExtensionSection(getConversationHolder(), parent, ExpandableComposite.TWISTIE);
|
|
145 |
expandStyle = getSectionStyle(ExtensionSection.class, false); |
|
146 |
ExtensionSection extensionSection = formFactory.createExtensionSection(getConversationHolder(), parent, expandStyle);
|
|
145 | 147 |
|
146 | 148 |
formFactory.createHorizontalSeparator(parent, SWT.BORDER); |
147 |
|
|
148 |
CreditSection creditSection = formFactory.createCreditSection(getConversationHolder(), parent, ExpandableComposite.TWISTIE);
|
|
149 |
expandStyle = getSectionStyle(CreditSection.class, false); |
|
150 |
CreditSection creditSection = formFactory.createCreditSection(getConversationHolder(), parent, expandStyle);
|
|
149 | 151 |
|
150 | 152 |
formFactory.createHorizontalSeparator(parent, SWT.BORDER); |
151 |
|
|
152 |
RightsSection rightsSection = formFactory.createRightsSection(getConversationHolder(), parent, ExpandableComposite.TWISTIE);
|
|
153 |
expandStyle = getSectionStyle(RightsSection.class, false); |
|
154 |
RightsSection rightsSection = formFactory.createRightsSection(getConversationHolder(), parent, expandStyle);
|
|
153 | 155 |
|
154 | 156 |
formFactory.createHorizontalSeparator(parent, SWT.BORDER); |
155 | 157 |
|
... | ... | |
162 | 164 |
} |
163 | 165 |
|
164 | 166 |
private void createIdentifiableMediaSections(RootElement parent) { |
165 |
MediaSection mediaSection = formFactory.createMediaSection(getConversationHolder(), parent, ExpandableComposite.TWISTIE); |
|
167 |
int expandStyle = getSectionStyle(MediaSection.class, false); |
|
168 |
MediaSection mediaSection = formFactory.createMediaSection(getConversationHolder(), parent, expandStyle); |
|
166 | 169 |
|
167 | 170 |
formFactory.createHorizontalSeparator(parent, SWT.BORDER); |
168 | 171 |
|
Also available in: Unified diff
ref #8260: save expansion state for supplemental data