1
|
|
2
|
// $Id$
|
3
|
/**
|
4
|
* Copyright (C) 2011 EDIT
|
5
|
* European Distributed Institute of Taxonomy
|
6
|
* http://www.e-taxonomy.eu
|
7
|
*
|
8
|
* The contents of this file are subject to the Mozilla Public License Version 1.1
|
9
|
* See LICENSE.TXT at the top of this package for the full license terms.
|
10
|
*/
|
11
|
|
12
|
package eu.etaxonomy.taxeditor.view.detail;
|
13
|
|
14
|
import java.util.Set;
|
15
|
|
16
|
import org.eclipse.jface.viewers.ISelection;
|
17
|
import org.eclipse.jface.viewers.SelectionChangedEvent;
|
18
|
import org.eclipse.jface.viewers.TreeNode;
|
19
|
import org.eclipse.swt.SWT;
|
20
|
import org.eclipse.swt.widgets.Composite;
|
21
|
import org.eclipse.ui.forms.widgets.ExpandableComposite;
|
22
|
|
23
|
import eu.etaxonomy.cdm.api.facade.DerivedUnitFacade;
|
24
|
import eu.etaxonomy.cdm.api.facade.DerivedUnitFacadeNotSupportedException;
|
25
|
import eu.etaxonomy.cdm.api.service.dto.FieldUnitDTO;
|
26
|
import eu.etaxonomy.cdm.ext.occurrence.gbif.GbifResponse;
|
27
|
import eu.etaxonomy.cdm.model.agent.Person;
|
28
|
import eu.etaxonomy.cdm.model.agent.Team;
|
29
|
import eu.etaxonomy.cdm.model.agent.TeamOrPersonBase;
|
30
|
import eu.etaxonomy.cdm.model.common.DefinedTermBase;
|
31
|
import eu.etaxonomy.cdm.model.common.Group;
|
32
|
import eu.etaxonomy.cdm.model.common.Marker;
|
33
|
import eu.etaxonomy.cdm.model.common.TermVocabulary;
|
34
|
import eu.etaxonomy.cdm.model.common.User;
|
35
|
import eu.etaxonomy.cdm.model.description.CategoricalData;
|
36
|
import eu.etaxonomy.cdm.model.description.DescriptionBase;
|
37
|
import eu.etaxonomy.cdm.model.description.DescriptionElementBase;
|
38
|
import eu.etaxonomy.cdm.model.description.PolytomousKeyNode;
|
39
|
import eu.etaxonomy.cdm.model.description.SpecimenDescription;
|
40
|
import eu.etaxonomy.cdm.model.media.Media;
|
41
|
import eu.etaxonomy.cdm.model.molecular.DnaSample;
|
42
|
import eu.etaxonomy.cdm.model.molecular.Sequence;
|
43
|
import eu.etaxonomy.cdm.model.molecular.SingleRead;
|
44
|
import eu.etaxonomy.cdm.model.name.NonViralName;
|
45
|
import eu.etaxonomy.cdm.model.occurrence.DerivedUnit;
|
46
|
import eu.etaxonomy.cdm.model.occurrence.FieldUnit;
|
47
|
import eu.etaxonomy.cdm.model.occurrence.MediaSpecimen;
|
48
|
import eu.etaxonomy.cdm.model.occurrence.SpecimenOrObservationType;
|
49
|
import eu.etaxonomy.cdm.model.reference.Reference;
|
50
|
import eu.etaxonomy.cdm.model.taxon.TaxonBase;
|
51
|
import eu.etaxonomy.cdm.model.taxon.TaxonRelationship;
|
52
|
import eu.etaxonomy.taxeditor.model.AbstractUtility;
|
53
|
import eu.etaxonomy.taxeditor.model.FeatureNodeContainer;
|
54
|
import eu.etaxonomy.taxeditor.model.IDerivedUnitFacadePart;
|
55
|
import eu.etaxonomy.taxeditor.model.MessagingUtils;
|
56
|
import eu.etaxonomy.taxeditor.model.PolytomousKeyRelationship;
|
57
|
import eu.etaxonomy.taxeditor.preference.IPreferenceKeys;
|
58
|
import eu.etaxonomy.taxeditor.preference.PreferencesUtil;
|
59
|
import eu.etaxonomy.taxeditor.store.UsageTermCollection;
|
60
|
import eu.etaxonomy.taxeditor.ui.element.AbstractFormSection;
|
61
|
import eu.etaxonomy.taxeditor.ui.element.RootElement;
|
62
|
import eu.etaxonomy.taxeditor.ui.section.agent.PersonDetailSection;
|
63
|
import eu.etaxonomy.taxeditor.ui.section.agent.TeamDetailSection;
|
64
|
import eu.etaxonomy.taxeditor.ui.section.agent.TeamOrPersonBaseDetailSection;
|
65
|
import eu.etaxonomy.taxeditor.ui.section.common.ReferencedEntityDetailSection;
|
66
|
import eu.etaxonomy.taxeditor.ui.section.description.DescribedSpecimenSection;
|
67
|
import eu.etaxonomy.taxeditor.ui.section.description.DescriptionDetailSection;
|
68
|
import eu.etaxonomy.taxeditor.ui.section.description.DescriptionElementDetailSection;
|
69
|
import eu.etaxonomy.taxeditor.ui.section.description.DescriptionElementMediaSection;
|
70
|
import eu.etaxonomy.taxeditor.ui.section.description.DescriptionElementSourceSection;
|
71
|
import eu.etaxonomy.taxeditor.ui.section.description.DescriptionSourceSection;
|
72
|
import eu.etaxonomy.taxeditor.ui.section.description.MediaDetailsSection;
|
73
|
import eu.etaxonomy.taxeditor.ui.section.description.NaturalLanguageSection;
|
74
|
import eu.etaxonomy.taxeditor.ui.section.description.ScopeSection;
|
75
|
import eu.etaxonomy.taxeditor.ui.section.feature.FeatureDistributionDetailSection;
|
76
|
import eu.etaxonomy.taxeditor.ui.section.grantedAuthority.GrantedAuthorityDetailSection;
|
77
|
import eu.etaxonomy.taxeditor.ui.section.group.GroupDetailSection;
|
78
|
import eu.etaxonomy.taxeditor.ui.section.group.MemberDetailSection;
|
79
|
import eu.etaxonomy.taxeditor.ui.section.identifier.IdentifierDetailSection;
|
80
|
import eu.etaxonomy.taxeditor.ui.section.key.PolytomousKeyDetailSection;
|
81
|
import eu.etaxonomy.taxeditor.ui.section.key.PolytomousKeyNodeDetailSection;
|
82
|
import eu.etaxonomy.taxeditor.ui.section.name.NameRelationshipDetailSection;
|
83
|
import eu.etaxonomy.taxeditor.ui.section.name.NomenclaturalStatusSection;
|
84
|
import eu.etaxonomy.taxeditor.ui.section.name.NonViralNameDetailSection;
|
85
|
import eu.etaxonomy.taxeditor.ui.section.name.ProtologueSection;
|
86
|
import eu.etaxonomy.taxeditor.ui.section.name.TypeDesignationSection;
|
87
|
import eu.etaxonomy.taxeditor.ui.section.occurrence.DerivedUnitBaseDetailSection;
|
88
|
import eu.etaxonomy.taxeditor.ui.section.occurrence.DerivedUnitGeneralDetailSection;
|
89
|
import eu.etaxonomy.taxeditor.ui.section.occurrence.DeterminationDetailSection;
|
90
|
import eu.etaxonomy.taxeditor.ui.section.occurrence.EmptySection;
|
91
|
import eu.etaxonomy.taxeditor.ui.section.occurrence.FieldUnitDetailSection;
|
92
|
import eu.etaxonomy.taxeditor.ui.section.occurrence.FieldUnitGeneralDetailSection;
|
93
|
import eu.etaxonomy.taxeditor.ui.section.occurrence.GatheringEventDetailSection;
|
94
|
import eu.etaxonomy.taxeditor.ui.section.occurrence.association.TaxonAssociationDetailSection;
|
95
|
import eu.etaxonomy.taxeditor.ui.section.occurrence.dna.DnaQualityDetailSection;
|
96
|
import eu.etaxonomy.taxeditor.ui.section.occurrence.dna.DnaSampleGeneralDetailSection;
|
97
|
import eu.etaxonomy.taxeditor.ui.section.occurrence.dna.DnaSamplePreparationPreservationSection;
|
98
|
import eu.etaxonomy.taxeditor.ui.section.occurrence.dna.SampleDesignationDetailSection;
|
99
|
import eu.etaxonomy.taxeditor.ui.section.occurrence.dna.SequenceContigFileCollectionDetailSection;
|
100
|
import eu.etaxonomy.taxeditor.ui.section.occurrence.dna.SequenceGeneralDetailSection;
|
101
|
import eu.etaxonomy.taxeditor.ui.section.occurrence.dna.SequenceReferenceCollectionDetailSection;
|
102
|
import eu.etaxonomy.taxeditor.ui.section.occurrence.dna.SingleReadGeneralDetailSection;
|
103
|
import eu.etaxonomy.taxeditor.ui.section.occurrence.dna.SingleReadPherogramCollectionDetailSection;
|
104
|
import eu.etaxonomy.taxeditor.ui.section.occurrence.dna.TissueSampleGeneralDetailSection;
|
105
|
import eu.etaxonomy.taxeditor.ui.section.occurrence.media.MediaSpecimenGeneralDetailSection;
|
106
|
import eu.etaxonomy.taxeditor.ui.section.occurrence.specimenView.FieldUnitDTOSection;
|
107
|
import eu.etaxonomy.taxeditor.ui.section.reference.NomenclaturalReferenceDetailSection;
|
108
|
import eu.etaxonomy.taxeditor.ui.section.reference.ReferenceDetailSection;
|
109
|
import eu.etaxonomy.taxeditor.ui.section.supplemental.RightsSection;
|
110
|
import eu.etaxonomy.taxeditor.ui.section.taxon.ParsingMessagesSection;
|
111
|
import eu.etaxonomy.taxeditor.ui.section.taxon.TaxonBaseDetailSection;
|
112
|
import eu.etaxonomy.taxeditor.ui.section.taxon.TaxonRelationshipDetailSection;
|
113
|
import eu.etaxonomy.taxeditor.ui.section.user.GroupsByUserDetailSection;
|
114
|
import eu.etaxonomy.taxeditor.ui.section.user.UserDetailSection;
|
115
|
import eu.etaxonomy.taxeditor.ui.section.userecords.UseRecordDetailSection;
|
116
|
import eu.etaxonomy.taxeditor.ui.section.vocabulary.TermVocabularyDetailSection;
|
117
|
import eu.etaxonomy.taxeditor.view.AbstractCdmDataViewer;
|
118
|
import eu.etaxonomy.taxeditor.view.AbstractCdmViewPart;
|
119
|
|
120
|
/**
|
121
|
*
|
122
|
* The DetailsViewer handles the content of the details view (
|
123
|
* {@link DetailsViewPart}).<br>
|
124
|
* Depending on the type of the selected element the section of the details view
|
125
|
* are created.
|
126
|
*
|
127
|
* @author n.hoffmann
|
128
|
* @created Feb 12, 2010
|
129
|
* @version 1.0
|
130
|
*/
|
131
|
public class DetailsViewer extends AbstractCdmDataViewer {
|
132
|
|
133
|
private ISelection selection;
|
134
|
|
135
|
public DetailsViewer(Composite parent, AbstractCdmViewPart viewPart) {
|
136
|
super(parent, viewPart);
|
137
|
}
|
138
|
|
139
|
// START HACK TO MAKE THE DERIVED UNIT FACADE WORK
|
140
|
// since we are getting implementations of DerivedUnitBase from the bulk
|
141
|
// editor
|
142
|
// and not derived unit facade objects,
|
143
|
|
144
|
@Override
|
145
|
public void setInput(Object input) {
|
146
|
if(input instanceof TreeNode){
|
147
|
input = ((TreeNode) input).getValue();
|
148
|
}
|
149
|
if(input instanceof GbifResponse){
|
150
|
input = ((GbifResponse) input).getDerivedUnitFacade();
|
151
|
}
|
152
|
if (input.getClass().equals(DerivedUnit.class)) {
|
153
|
DerivedUnit derivedUnit = (DerivedUnit)input;
|
154
|
try {
|
155
|
input = DerivedUnitFacade.NewInstance(derivedUnit,
|
156
|
PreferencesUtil.getDerivedUnitConfigurator());
|
157
|
} catch (DerivedUnitFacadeNotSupportedException e) {
|
158
|
// MessagingUtils.error(getClass(), e); //nothing should happen, later on the Details View will show an according information that it is not possible to open this data
|
159
|
}
|
160
|
}
|
161
|
else if(input instanceof FieldUnit){
|
162
|
input = DerivedUnitFacade.NewInstance(SpecimenOrObservationType.FieldUnit, (FieldUnit) input);
|
163
|
}
|
164
|
super.setInput(input);
|
165
|
}
|
166
|
|
167
|
@Override
|
168
|
protected void markViewPartDirty() {
|
169
|
if (getInput() instanceof DerivedUnitFacade) {
|
170
|
DerivedUnitFacade facade = (DerivedUnitFacade) getInput();
|
171
|
if(facade.innerDerivedUnit()!=null){
|
172
|
getViewPart().changed(facade.innerDerivedUnit());
|
173
|
}
|
174
|
else if(facade.innerFieldUnit()!=null){
|
175
|
getViewPart().changed(facade.innerFieldUnit());
|
176
|
}
|
177
|
}
|
178
|
else{
|
179
|
super.markViewPartDirty();
|
180
|
}
|
181
|
}
|
182
|
|
183
|
// END HACK TO MAKE THE DERIVED UNIT FACADE WORK
|
184
|
|
185
|
|
186
|
/** {@inheritDoc} */
|
187
|
@Override
|
188
|
protected void showParts() {
|
189
|
// FIXME (CM) : Need to clean out this code.
|
190
|
// Too much type checking to decide which detail view to display.
|
191
|
// Need to build in a mechanism where navigators / editors are 'aware'
|
192
|
// of the corresponding detail viewer.
|
193
|
Object input = getInput();
|
194
|
|
195
|
destroySections();
|
196
|
if (input instanceof TaxonBase) {
|
197
|
if(((TaxonBase) input).getName()==null){
|
198
|
createEmptySection(rootElement);
|
199
|
}
|
200
|
else{
|
201
|
createTaxonSections(rootElement);
|
202
|
}
|
203
|
|
204
|
} else if (input instanceof NonViralName) {
|
205
|
createNameSections(rootElement);
|
206
|
|
207
|
} else if (input instanceof Reference) {
|
208
|
createReferenceSections(rootElement);
|
209
|
|
210
|
} else if (input instanceof Team) {
|
211
|
createTeamDetailSection(rootElement);
|
212
|
|
213
|
} else if (input instanceof Person) {
|
214
|
createPersonDetailSection(rootElement);
|
215
|
|
216
|
} else if (input instanceof TeamOrPersonBase) {
|
217
|
createTeamOrPersonBaseDetailSection(rootElement);
|
218
|
|
219
|
} else if (input instanceof DescriptionBase) {
|
220
|
if(input instanceof SpecimenDescription){
|
221
|
//TODO: add more sections to DetailsView for SpecimenDescription
|
222
|
createSpecimenDescriptionSection(rootElement);
|
223
|
}
|
224
|
else{
|
225
|
Set<Marker> descriptionMarkers = ((DescriptionBase<?>) input).getMarkers();
|
226
|
|
227
|
Boolean isUseDescription = false;
|
228
|
for (Marker marker : descriptionMarkers) {
|
229
|
if (marker.getMarkerType()!= null && marker.getMarkerType().getUuid().equals(UsageTermCollection.uuidUseMarkerType)) {
|
230
|
isUseDescription = true;
|
231
|
}
|
232
|
}
|
233
|
if (((DescriptionBase<?>) input).isImageGallery()) {
|
234
|
createImageGallerySection(rootElement);
|
235
|
|
236
|
} else if (isUseDescription) {
|
237
|
createUseDescriptionSection(rootElement);
|
238
|
} else {
|
239
|
createDescriptionSection(rootElement);
|
240
|
|
241
|
}
|
242
|
}
|
243
|
} else if (input instanceof DescriptionElementBase) {
|
244
|
Set<Marker> descriptionMarkers = ((DescriptionElementBase) input).getInDescription().getMarkers();
|
245
|
|
246
|
Boolean isUseDescription = false;
|
247
|
for (Marker marker : descriptionMarkers) {
|
248
|
if (marker.getMarkerType()!= null && marker.getMarkerType().getUuid().equals(UsageTermCollection.uuidUseMarkerType)) {
|
249
|
isUseDescription = true;
|
250
|
}
|
251
|
}
|
252
|
|
253
|
if (isUseDescription == true && input instanceof CategoricalData) {
|
254
|
createUseRecordSection(rootElement);
|
255
|
} else {
|
256
|
createDescriptionElementSection(rootElement);
|
257
|
}
|
258
|
|
259
|
} else if (input instanceof Media) {
|
260
|
createMediaElementSection(rootElement);
|
261
|
|
262
|
} else if (input instanceof DerivedUnitFacade) {
|
263
|
if(((DerivedUnitFacade) input).getType()==SpecimenOrObservationType.FieldUnit){
|
264
|
if(((DerivedUnitFacade) input).innerFieldUnit()==null){
|
265
|
MessagingUtils.error(DetailsViewer.class, "FieldUnit of facade is null", null);
|
266
|
}
|
267
|
else{
|
268
|
createFieldUnitSection(rootElement);
|
269
|
}
|
270
|
}
|
271
|
else if(((DerivedUnitFacade) input).getType()==SpecimenOrObservationType.PreservedSpecimen){
|
272
|
if(((DerivedUnitFacade) input).innerDerivedUnit()==null){
|
273
|
MessagingUtils.error(DetailsViewer.class, "DerivedUnit of facade is null", null);
|
274
|
}
|
275
|
else{
|
276
|
createDerivedUnitBaseElementSection(rootElement);
|
277
|
}
|
278
|
}
|
279
|
else if(((DerivedUnitFacade) input).getType()==SpecimenOrObservationType.TissueSample){
|
280
|
//TissueSample should only be created by using it's own class
|
281
|
//in future using only one class with different SpecimenOrObservationTypes is desired
|
282
|
// createTissueSampleSection(rootElement);
|
283
|
}
|
284
|
else{
|
285
|
createDerivedUnitBaseElementSection(rootElement);
|
286
|
}
|
287
|
} else if (input instanceof DnaSample){
|
288
|
DnaSample dnaSample = (DnaSample)input;
|
289
|
if(dnaSample.getRecordBasis()==SpecimenOrObservationType.TissueSample){
|
290
|
createTissueSampleSection(rootElement);
|
291
|
}
|
292
|
else if(dnaSample.getRecordBasis()==SpecimenOrObservationType.DnaSample){
|
293
|
createDnaSampleSection(rootElement);
|
294
|
}
|
295
|
} else if (input instanceof MediaSpecimen){
|
296
|
createMediaSpecimenSection(rootElement);
|
297
|
}
|
298
|
else if(input instanceof Sequence){
|
299
|
createSequenceSection(rootElement);
|
300
|
}
|
301
|
else if(input instanceof SingleRead){
|
302
|
createSingleReadSection(rootElement);
|
303
|
}
|
304
|
else if (input instanceof FeatureNodeContainer) {
|
305
|
createFeatureDistributionSection(rootElement);
|
306
|
|
307
|
}else if ((input instanceof PolytomousKeyNode) || (input instanceof PolytomousKeyRelationship)) {
|
308
|
createPolytomousKeyNodeSection(rootElement);
|
309
|
} else if (input instanceof User) {
|
310
|
createUserSection(rootElement);
|
311
|
} else if (input instanceof Group) {
|
312
|
createGroupSection(rootElement);
|
313
|
} else if (input instanceof TaxonRelationship) {
|
314
|
createTaxonRelationshipSection(rootElement);
|
315
|
} else if (input instanceof TermVocabulary) {
|
316
|
createTermVocabularySection(rootElement);
|
317
|
} else if (input instanceof DefinedTermBase) {
|
318
|
createDefinedTermSection(rootElement);
|
319
|
} else if (input instanceof FieldUnitDTO) {
|
320
|
createFieldUnitDTOSection((FieldUnitDTO) input);
|
321
|
}
|
322
|
|
323
|
else {
|
324
|
createEmptySection(rootElement);
|
325
|
}
|
326
|
layout();
|
327
|
}
|
328
|
|
329
|
private void createFieldUnitDTOSection(FieldUnitDTO dto) {
|
330
|
destroySections();
|
331
|
|
332
|
new FieldUnitDTOSection(dto, rootElement.getLayoutComposite(), ExpandableComposite.EXPANDED | ExpandableComposite.TWISTIE | ExpandableComposite.CLIENT_INDENT);
|
333
|
|
334
|
}
|
335
|
|
336
|
private void createEmptySection(RootElement parent) {
|
337
|
destroySections();
|
338
|
|
339
|
EmptySection emptySection = formFactory.createEmptySection(formFactory, parent, SWT.NONE);
|
340
|
|
341
|
addPart(emptySection);
|
342
|
}
|
343
|
|
344
|
private void createGroupSection(RootElement parent) {
|
345
|
destroySections();
|
346
|
|
347
|
GroupDetailSection groupDetailSection = formFactory.createGroupDetailSection(getConversationHolder(), parent, this, ExpandableComposite.TWISTIE| ExpandableComposite.EXPANDED);
|
348
|
MemberDetailSection memberDetailSection = formFactory.createMemberDetailSection(getConversationHolder(), parent, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
|
349
|
GrantedAuthorityDetailSection grantedAuthorityDetailSection = formFactory.createGrantedAuthorityDetailSection(getConversationHolder(), parent,ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
|
350
|
|
351
|
addPart(groupDetailSection);
|
352
|
addPart(memberDetailSection);
|
353
|
addPart(grantedAuthorityDetailSection);
|
354
|
}
|
355
|
|
356
|
/** {@inheritDoc} */
|
357
|
@Override
|
358
|
public ISelection getSelection() {
|
359
|
return selection;
|
360
|
}
|
361
|
|
362
|
/** {@inheritDoc} */
|
363
|
@Override
|
364
|
public void setSelection(ISelection selection, boolean reveal) {
|
365
|
this.selection = selection;
|
366
|
if(this.selection!=null){
|
367
|
SelectionChangedEvent selectionChangedEvent = new SelectionChangedEvent(this, selection);
|
368
|
fireSelectionChanged(selectionChangedEvent);
|
369
|
}
|
370
|
}
|
371
|
|
372
|
private void createTaxonSections(RootElement parent) {
|
373
|
destroySections();
|
374
|
|
375
|
ParsingMessagesSection parsingMessagesSection = formFactory.createParsingMessagesSection(getConversationHolder(), parent, this,
|
376
|
ExpandableComposite.EXPANDED | ExpandableComposite.EXPANDED);
|
377
|
|
378
|
TaxonBaseDetailSection taxonBaseDetailSection = formFactory.createTaxonBaseDetailSection(getConversationHolder(), parent, this,
|
379
|
ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
|
380
|
formFactory.createHorizontalSeparator(parent, SWT.BORDER);
|
381
|
|
382
|
NonViralNameDetailSection nonViralNameSection = formFactory.createNonViralNameDetailSection(getConversationHolder(), parent, this,
|
383
|
ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
|
384
|
formFactory.createHorizontalSeparator(parent, SWT.BORDER);
|
385
|
|
386
|
NomenclaturalReferenceDetailSection referenceDetailSection = formFactory.createNomenclaturalReferenceDetailSection(getConversationHolder(), parent, this,
|
387
|
ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
|
388
|
formFactory.createHorizontalSeparator(parent, SWT.BORDER);
|
389
|
|
390
|
NomenclaturalStatusSection nomenclaturalStatusSection = formFactory.createNomenclaturalStatusSection(getConversationHolder(), parent,
|
391
|
ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
|
392
|
formFactory.createHorizontalSeparator(parent, SWT.BORDER);
|
393
|
|
394
|
//TODO RL
|
395
|
if(!PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.IS_RL)){
|
396
|
ProtologueSection protologSection = formFactory.createProtologueSection(getConversationHolder(), parent, ExpandableComposite.TWISTIE);
|
397
|
formFactory.createHorizontalSeparator(parent, SWT.BORDER);
|
398
|
|
399
|
TypeDesignationSection typeDesignationSection = formFactory.createTypeDesignationSection(getConversationHolder(), parent, ExpandableComposite.TWISTIE);
|
400
|
formFactory.createHorizontalSeparator(parent, SWT.BORDER);
|
401
|
|
402
|
NameRelationshipDetailSection nameRelationshipSection = formFactory.createNameRelationshipDetailSection(getConversationHolder(), parent, ExpandableComposite.TWISTIE);
|
403
|
formFactory.createHorizontalSeparator(parent, SWT.BORDER);
|
404
|
|
405
|
addPart(protologSection);
|
406
|
addPart(typeDesignationSection);
|
407
|
addPart(nameRelationshipSection);
|
408
|
}
|
409
|
|
410
|
addPart(parsingMessagesSection);
|
411
|
addPart(taxonBaseDetailSection);
|
412
|
addPart(nonViralNameSection);
|
413
|
addPart(nomenclaturalStatusSection);
|
414
|
addPart(referenceDetailSection);
|
415
|
}
|
416
|
|
417
|
private void createNameSections(RootElement parent) {
|
418
|
destroySections();
|
419
|
NonViralNameDetailSection nonViralNameSection = formFactory.createNonViralNameDetailSection(getConversationHolder(), parent, this,
|
420
|
ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
|
421
|
formFactory.createHorizontalSeparator(parent, SWT.BORDER);
|
422
|
|
423
|
NomenclaturalReferenceDetailSection referenceDetailSection = formFactory.createNomenclaturalReferenceDetailSection(getConversationHolder(), parent, this,
|
424
|
ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
|
425
|
formFactory.createHorizontalSeparator(parent, SWT.BORDER);
|
426
|
|
427
|
NomenclaturalStatusSection nomenclaturalStatusSection = formFactory.createNomenclaturalStatusSection(getConversationHolder(), parent,
|
428
|
ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
|
429
|
formFactory.createHorizontalSeparator(parent, SWT.BORDER);
|
430
|
|
431
|
addPart(nonViralNameSection);
|
432
|
addPart(nomenclaturalStatusSection);
|
433
|
addPart(referenceDetailSection);
|
434
|
//TODO RL
|
435
|
if(!PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.IS_RL)){
|
436
|
ProtologueSection protologSection = formFactory.createProtologueSection(getConversationHolder(), parent, ExpandableComposite.TWISTIE);
|
437
|
formFactory.createHorizontalSeparator(parent, SWT.BORDER);
|
438
|
|
439
|
TypeDesignationSection typeDesignationSection = formFactory.createTypeDesignationSection(getConversationHolder(), parent, ExpandableComposite.TWISTIE);
|
440
|
formFactory.createHorizontalSeparator(parent, SWT.BORDER);
|
441
|
|
442
|
NameRelationshipDetailSection nameRelationshipSection = formFactory.createNameRelationshipDetailSection(getConversationHolder(), parent, ExpandableComposite.TWISTIE);
|
443
|
formFactory.createHorizontalSeparator(parent, SWT.BORDER);
|
444
|
addPart(protologSection);
|
445
|
addPart(typeDesignationSection);
|
446
|
addPart(nameRelationshipSection);
|
447
|
}
|
448
|
}
|
449
|
|
450
|
private void createReferenceSections(RootElement parent) {
|
451
|
destroySections();
|
452
|
|
453
|
ReferenceDetailSection referenceDetailSection = formFactory.createReferenceDetailSection(getConversationHolder(), parent, this,
|
454
|
ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
|
455
|
|
456
|
addPart(referenceDetailSection);
|
457
|
}
|
458
|
|
459
|
private void createTeamOrPersonBaseDetailSection(RootElement parent) {
|
460
|
destroySections();
|
461
|
TeamOrPersonBaseDetailSection teamOrPersonBaseDetailSection = formFactory.createTeamOrPersonBaseDetailSection(getConversationHolder(), parent, this, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
|
462
|
|
463
|
addPart(teamOrPersonBaseDetailSection);
|
464
|
}
|
465
|
|
466
|
private void createTeamDetailSection(RootElement parent) {
|
467
|
destroySections();
|
468
|
TeamDetailSection teamDetailSection = formFactory.createTeamDetailSection(getConversationHolder(), parent, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
|
469
|
|
470
|
addPart(teamDetailSection);
|
471
|
}
|
472
|
|
473
|
private void createPersonDetailSection(RootElement parent) {
|
474
|
destroySections();
|
475
|
PersonDetailSection personDetailSection = formFactory.createPersonDetailSection(getConversationHolder(), parent, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
|
476
|
addPart(personDetailSection);
|
477
|
}
|
478
|
|
479
|
private void createDescriptionElementSection(RootElement parent) {
|
480
|
destroySections();
|
481
|
|
482
|
DescriptionElementDetailSection descriptionElementDetailSection = formFactory.createDescriptionElementDetailSection(getConversationHolder(), parent, this, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
|
483
|
|
484
|
formFactory.createHorizontalSeparator(parent, SWT.BORDER);
|
485
|
|
486
|
DescriptionElementSourceSection descriptionElementSourceSection = formFactory.createDescriptionElementSourceSection(getConversationHolder(), parent, ExpandableComposite.TWISTIE);
|
487
|
|
488
|
formFactory.createHorizontalSeparator(parent, SWT.BORDER);
|
489
|
|
490
|
DescriptionElementMediaSection descriptionElementMediaSection = formFactory.createDescriptionElementMediaSection(getConversationHolder(), parent, ExpandableComposite.TWISTIE);
|
491
|
|
492
|
formFactory.createHorizontalSeparator(parent, SWT.BORDER);
|
493
|
|
494
|
addPart(descriptionElementDetailSection);
|
495
|
addPart(descriptionElementSourceSection);
|
496
|
addPart(descriptionElementMediaSection);
|
497
|
}
|
498
|
|
499
|
private void createDescriptionSection(RootElement parent) {
|
500
|
destroySections();
|
501
|
DescriptionDetailSection descriptionDetailSection = formFactory.createDescriptionDetailSection(getConversationHolder(), parent, this, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
|
502
|
|
503
|
formFactory.createHorizontalSeparator(parent, SWT.BORDER);
|
504
|
|
505
|
NaturalLanguageSection naturalLanguageSection = formFactory.createNaturalLanguageSection(getConversationHolder(), parent, this, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
|
506
|
|
507
|
formFactory.createHorizontalSeparator(parent, SWT.BORDER);
|
508
|
|
509
|
DescribedSpecimenSection describedSpecimenSection = formFactory.createDescribedSpecimenSection(getConversationHolder(), parent, ExpandableComposite.TWISTIE);
|
510
|
|
511
|
formFactory.createHorizontalSeparator(parent, SWT.BORDER);
|
512
|
|
513
|
// DescriptionSourceSection descriptionSourceSection = (DescriptionSourceSection) formFactory
|
514
|
// .createEntityDetailSection(EntityDetailType.DESCRIPTIONSOURCE,
|
515
|
// getConversationHolder(), parent, Section.TWISTIE);
|
516
|
//
|
517
|
// formFactory.createHorizontalSeparator(parent, SWT.BORDER);
|
518
|
|
519
|
ScopeSection scopeSection = formFactory.createScopeSection(getConversationHolder(), parent, ExpandableComposite.TWISTIE);
|
520
|
|
521
|
formFactory.createHorizontalSeparator(parent, SWT.BORDER);
|
522
|
|
523
|
addPart(descriptionDetailSection);
|
524
|
addPart(naturalLanguageSection);
|
525
|
addPart(describedSpecimenSection);
|
526
|
// addPart(descriptionSourceSection);
|
527
|
addPart(scopeSection);
|
528
|
}
|
529
|
|
530
|
private void createSpecimenDescriptionSection(RootElement parent) {
|
531
|
destroySections();
|
532
|
DescriptionDetailSection descriptionDetailSection = formFactory.createDescriptionDetailSection(getConversationHolder(), parent, this, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
|
533
|
addPart(descriptionDetailSection);
|
534
|
}
|
535
|
|
536
|
private void createUseDescriptionSection(RootElement parent) {
|
537
|
destroySections();
|
538
|
DescriptionDetailSection descriptionDetailSection = formFactory.createDescriptionDetailSection(getConversationHolder(), parent, this, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
|
539
|
|
540
|
formFactory.createHorizontalSeparator(parent, SWT.BORDER);
|
541
|
|
542
|
DescriptionSourceSection descriptionSourceSection = formFactory.createDescriptionSourceSection(getConversationHolder(), parent, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
|
543
|
|
544
|
formFactory.createHorizontalSeparator(parent, SWT.BORDER);
|
545
|
|
546
|
addPart(descriptionDetailSection);
|
547
|
addPart(descriptionSourceSection);
|
548
|
|
549
|
}
|
550
|
|
551
|
private void createImageGallerySection(RootElement parent) {
|
552
|
destroySections();
|
553
|
DescriptionDetailSection descriptionDetailSection = formFactory.createDescriptionDetailSection(getConversationHolder(), parent, this, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
|
554
|
|
555
|
addPart(descriptionDetailSection);
|
556
|
}
|
557
|
|
558
|
private void createMediaElementSection(RootElement parent) {
|
559
|
destroySections();
|
560
|
|
561
|
MediaDetailsSection mediaDetailSection = formFactory.createMediaDetailsSection(getConversationHolder(), parent, this, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
|
562
|
|
563
|
addPart(mediaDetailSection);
|
564
|
}
|
565
|
|
566
|
private void createDerivedUnitBaseElementSection(RootElement parent) {
|
567
|
destroySections();
|
568
|
|
569
|
DerivedUnitGeneralDetailSection derivedUnitGeneralDetailSection = formFactory.createDerivedUnitGeneralDetailSection(getConversationHolder(), parent, this, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
|
570
|
//TODO for DerivateEditor do not use facade anymore to avoid this special case handling #4539
|
571
|
if(!(AbstractUtility.getActivePart() instanceof IDerivedUnitFacadePart)){
|
572
|
derivedUnitGeneralDetailSection.setShowOnlyDerivedUnitData(true);
|
573
|
}
|
574
|
addPart(derivedUnitGeneralDetailSection);
|
575
|
|
576
|
formFactory.createHorizontalSeparator(parent, SWT.BORDER);
|
577
|
|
578
|
DerivedUnitBaseDetailSection derivedUnitBaseDetailSection = formFactory.createDerivedUnitBaseDetailSection(getConversationHolder(), parent, this, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
|
579
|
addPart(derivedUnitBaseDetailSection);
|
580
|
|
581
|
//for editors working with facades
|
582
|
if(AbstractUtility.getActivePart() instanceof IDerivedUnitFacadePart){
|
583
|
formFactory.createHorizontalSeparator(parent, SWT.BORDER);
|
584
|
GatheringEventDetailSection gatheringEventDetailSection = formFactory.createGatheringEventDetailSection(getConversationHolder(), parent, this, ExpandableComposite.TWISTIE);
|
585
|
addPart(gatheringEventDetailSection);
|
586
|
|
587
|
formFactory.createHorizontalSeparator(parent, SWT.BORDER);
|
588
|
FieldUnitDetailSection fieldUnitDetailSection = formFactory.createFieldUnitDetailSection(getConversationHolder(), parent, this, ExpandableComposite.TWISTIE);
|
589
|
addPart(fieldUnitDetailSection);
|
590
|
}
|
591
|
|
592
|
if(!PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.DETERMINATION_ONLY_FOR_FIELD_UNITS)){
|
593
|
formFactory.createHorizontalSeparator(parent, SWT.BORDER);
|
594
|
DeterminationDetailSection determinationDetailSection = formFactory.createDeterminationDetailSection(getConversationHolder(), parent, this, ExpandableComposite.TWISTIE);
|
595
|
addPart(determinationDetailSection);
|
596
|
}
|
597
|
if(PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.SHOW_TAXON_ASSOCIATIONS)){
|
598
|
formFactory.createHorizontalSeparator(parent, SWT.BORDER);
|
599
|
TaxonAssociationDetailSection taxonAssociationDetailSection = formFactory.createTaxonAssociationDetailSection(getConversationHolder(), parent, this, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
|
600
|
addPart(taxonAssociationDetailSection);
|
601
|
}
|
602
|
|
603
|
formFactory.createHorizontalSeparator(parent, SWT.BORDER);
|
604
|
IdentifierDetailSection identifierDetailSection = formFactory.createIdentifierDetailSection(getConversationHolder(), parent, ExpandableComposite.TWISTIE);
|
605
|
addPart(identifierDetailSection);
|
606
|
|
607
|
}
|
608
|
|
609
|
private void createFieldUnitSection(RootElement parent) {
|
610
|
destroySections();
|
611
|
|
612
|
FieldUnitGeneralDetailSection fielUnitGeneralDetailSection = formFactory.createFieldUnitGeneralDetailSection(getConversationHolder(), parent, this, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
|
613
|
|
614
|
formFactory.createHorizontalSeparator(parent, SWT.BORDER);
|
615
|
|
616
|
GatheringEventDetailSection gatheringEventDetailSection = formFactory.createGatheringEventDetailSection(getConversationHolder(), parent, this, ExpandableComposite.TWISTIE);
|
617
|
|
618
|
formFactory.createHorizontalSeparator(parent, SWT.BORDER);
|
619
|
|
620
|
FieldUnitDetailSection fieldUnitDetailSection = formFactory.createFieldUnitDetailSection(getConversationHolder(), parent, this, ExpandableComposite.TWISTIE);
|
621
|
|
622
|
addPart(fielUnitGeneralDetailSection);
|
623
|
addPart(gatheringEventDetailSection);
|
624
|
addPart(fieldUnitDetailSection);
|
625
|
|
626
|
if(PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.DETERMINATION_ONLY_FOR_FIELD_UNITS)){
|
627
|
formFactory.createHorizontalSeparator(parent, SWT.BORDER);
|
628
|
DeterminationDetailSection determinationDetailSection = formFactory.createDeterminationDetailSection(getConversationHolder(), parent, this, ExpandableComposite.TWISTIE);
|
629
|
addPart(determinationDetailSection);
|
630
|
}
|
631
|
}
|
632
|
|
633
|
private void createTissueSampleSection(RootElement parent) {
|
634
|
destroySections();
|
635
|
|
636
|
TissueSampleGeneralDetailSection section = formFactory.createTissueSampleGeneralDetailSection(getConversationHolder(), parent, this, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
|
637
|
|
638
|
formFactory.createHorizontalSeparator(parent, SWT.BORDER);
|
639
|
|
640
|
SampleDesignationDetailSection sampleDesignationDetailSection = formFactory.createSampleDesignationDetailSection(getConversationHolder(), parent, this, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
|
641
|
|
642
|
addPart(section);
|
643
|
addPart(sampleDesignationDetailSection);
|
644
|
}
|
645
|
|
646
|
private void createDnaSampleSection(RootElement parent) {
|
647
|
destroySections();
|
648
|
|
649
|
DnaSampleGeneralDetailSection section = formFactory.createDnaSampleGeneralDetailSection(getConversationHolder(), parent, this, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
|
650
|
|
651
|
formFactory.createHorizontalSeparator(parent, SWT.BORDER);
|
652
|
|
653
|
DnaSamplePreparationPreservationSection preparationPreservationSection = formFactory.createDnaSamplePreparationPreservationSection(getConversationHolder(), parent, this, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
|
654
|
|
655
|
formFactory.createHorizontalSeparator(parent, SWT.BORDER);
|
656
|
|
657
|
DnaQualityDetailSection qualitySection = formFactory.createDnaQualityDetailSection(getConversationHolder(), parent, this, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
|
658
|
|
659
|
formFactory.createHorizontalSeparator(parent, SWT.BORDER);
|
660
|
|
661
|
SampleDesignationDetailSection sampleDesignationDetailSection = formFactory.createSampleDesignationDetailSection(getConversationHolder(), parent, this, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
|
662
|
|
663
|
addPart(section);
|
664
|
addPart(preparationPreservationSection);
|
665
|
addPart(qualitySection);
|
666
|
addPart(sampleDesignationDetailSection);
|
667
|
}
|
668
|
|
669
|
private void createSequenceSection(RootElement parent) {
|
670
|
destroySections();
|
671
|
|
672
|
SequenceGeneralDetailSection section = formFactory.createSequenceGeneralDetailSection(getConversationHolder(), parent, this, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
|
673
|
|
674
|
formFactory.createHorizontalSeparator(parent, SWT.BORDER);
|
675
|
|
676
|
SequenceReferenceCollectionDetailSection referenceSection = formFactory.createSequenceReferenceCollectionDetailSection(getConversationHolder(), parent, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
|
677
|
|
678
|
formFactory.createHorizontalSeparator(parent, SWT.BORDER);
|
679
|
|
680
|
SequenceContigFileCollectionDetailSection contigFileSection = formFactory.createSequenceContigFileCollectionDetailSection(getConversationHolder(), parent, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
|
681
|
|
682
|
|
683
|
addPart(section);
|
684
|
addPart(referenceSection);
|
685
|
addPart(contigFileSection);
|
686
|
}
|
687
|
|
688
|
private void createSingleReadSection(RootElement parent) {
|
689
|
destroySections();
|
690
|
|
691
|
SingleReadGeneralDetailSection section = formFactory.createSingleReadGeneralDetailSection(getConversationHolder(), parent, this, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
|
692
|
addPart(section);
|
693
|
|
694
|
formFactory.createHorizontalSeparator(parent, SWT.BORDER);
|
695
|
|
696
|
SingleReadPherogramCollectionDetailSection pherogramSection = formFactory.createSingleReadPherogramCollectionDetailSection(getConversationHolder(), parent, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
|
697
|
addPart(pherogramSection);
|
698
|
|
699
|
}
|
700
|
|
701
|
private void createMediaSpecimenSection(RootElement parent) {
|
702
|
destroySections();
|
703
|
|
704
|
MediaSpecimenGeneralDetailSection generalSection = formFactory.createMediaSpecimenGeneralDetailSection(getConversationHolder(), parent, this, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
|
705
|
addPart(generalSection);
|
706
|
|
707
|
formFactory.createHorizontalSeparator(parent, SWT.BORDER);
|
708
|
|
709
|
RightsSection rightsSection = formFactory.createRightsSection(getConversationHolder(), parent, ExpandableComposite.TWISTIE);
|
710
|
addPart(rightsSection);
|
711
|
|
712
|
}
|
713
|
|
714
|
private void createFeatureDistributionSection(RootElement parent) {
|
715
|
destroySections();
|
716
|
|
717
|
FeatureDistributionDetailSection featureDistributionSection = formFactory.createFeatureDistributionDetailSection(getConversationHolder(), parent, this, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
|
718
|
|
719
|
addPart(featureDistributionSection);
|
720
|
}
|
721
|
|
722
|
private void createPolytomousKeyNodeSection(RootElement parent) {
|
723
|
destroySections();
|
724
|
|
725
|
PolytomousKeyDetailSection polytomousKeyDetailSection = formFactory.createPolytomousKeyDetailSection(getConversationHolder(), parent, this, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
|
726
|
|
727
|
formFactory.createHorizontalSeparator(parent, SWT.BORDER);
|
728
|
|
729
|
PolytomousKeyNodeDetailSection polytomousKeyNodeDetailSection = formFactory.createPolytomousKeyNodeDetailSection(getConversationHolder(), parent, this, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
|
730
|
|
731
|
addPart(polytomousKeyDetailSection);
|
732
|
addPart(polytomousKeyNodeDetailSection);
|
733
|
|
734
|
}
|
735
|
|
736
|
private void createUseRecordSection(RootElement parent) {
|
737
|
destroySections();
|
738
|
|
739
|
UseRecordDetailSection descriptionUseRecordSection = formFactory.createUseRecordDetailSection(getConversationHolder(), parent, this,ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
|
740
|
|
741
|
formFactory.createHorizontalSeparator(parent, SWT.BORDER);
|
742
|
|
743
|
addPart(descriptionUseRecordSection);
|
744
|
|
745
|
|
746
|
}
|
747
|
|
748
|
private void createUserSection(RootElement parent) {
|
749
|
destroySections();
|
750
|
|
751
|
UserDetailSection userDetailSection = formFactory.createUserDetailSection(getConversationHolder(), parent, this, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
|
752
|
|
753
|
GroupsByUserDetailSection groupByUserDetailSection = formFactory.createGroupsByUserDetailSection(getConversationHolder(), parent, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
|
754
|
|
755
|
addPart(userDetailSection);
|
756
|
addPart(groupByUserDetailSection);
|
757
|
}
|
758
|
|
759
|
private void createTaxonRelationshipSection(RootElement parent) {
|
760
|
destroySections();
|
761
|
|
762
|
TaxonRelationshipDetailSection taxonRelationshipDetailSection = formFactory.createTaxonRelationshipDetailSection(getConversationHolder(), parent, this, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
|
763
|
|
764
|
ReferencedEntityDetailSection referencedEntityBaseDetailSection = formFactory.createReferencedEntityDetailSection(getConversationHolder(), parent, this, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
|
765
|
addPart(taxonRelationshipDetailSection);
|
766
|
addPart(referencedEntityBaseDetailSection);
|
767
|
}
|
768
|
|
769
|
private void createTermVocabularySection(RootElement parent) {
|
770
|
destroySections();
|
771
|
|
772
|
TermVocabularyDetailSection termVocabularyDetailSection = formFactory.createTermVocabularyDetailSection(getConversationHolder(), parent, this, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
|
773
|
addPart(termVocabularyDetailSection);
|
774
|
}
|
775
|
|
776
|
private void createDefinedTermSection(RootElement parent) {
|
777
|
destroySections();
|
778
|
|
779
|
AbstractFormSection<?> definedTermDetailSection = formFactory.createDefinedTermDetailSection(getInput().getClass(), getConversationHolder(), parent, this, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
|
780
|
addPart(definedTermDetailSection);
|
781
|
}
|
782
|
|
783
|
}
|