2 * Copyright (C) 2011 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
6 * The contents of this file are subject to the Mozilla Public License Version 1.1
7 * See LICENSE.TXT at the top of this package for the full license terms.
10 package eu
.etaxonomy
.taxeditor
.view
.e4
.details
;
14 import org
.eclipse
.jface
.viewers
.ISelection
;
15 import org
.eclipse
.jface
.viewers
.SelectionChangedEvent
;
16 import org
.eclipse
.jface
.viewers
.TreeNode
;
17 import org
.eclipse
.swt
.SWT
;
18 import org
.eclipse
.swt
.widgets
.Composite
;
19 import org
.eclipse
.ui
.forms
.widgets
.ExpandableComposite
;
21 import eu
.etaxonomy
.cdm
.api
.facade
.DerivedUnitFacade
;
22 import eu
.etaxonomy
.cdm
.api
.facade
.DerivedUnitFacadeNotSupportedException
;
23 import eu
.etaxonomy
.cdm
.ext
.occurrence
.gbif
.GbifResponse
;
24 import eu
.etaxonomy
.cdm
.model
.agent
.Person
;
25 import eu
.etaxonomy
.cdm
.model
.agent
.Team
;
26 import eu
.etaxonomy
.cdm
.model
.agent
.TeamOrPersonBase
;
27 import eu
.etaxonomy
.cdm
.model
.common
.DefinedTermBase
;
28 import eu
.etaxonomy
.cdm
.model
.common
.Group
;
29 import eu
.etaxonomy
.cdm
.model
.common
.Marker
;
30 import eu
.etaxonomy
.cdm
.model
.common
.TermVocabulary
;
31 import eu
.etaxonomy
.cdm
.model
.common
.User
;
32 import eu
.etaxonomy
.cdm
.model
.description
.CategoricalData
;
33 import eu
.etaxonomy
.cdm
.model
.description
.DescriptionBase
;
34 import eu
.etaxonomy
.cdm
.model
.description
.DescriptionElementBase
;
35 import eu
.etaxonomy
.cdm
.model
.description
.PolytomousKeyNode
;
36 import eu
.etaxonomy
.cdm
.model
.description
.SpecimenDescription
;
37 import eu
.etaxonomy
.cdm
.model
.media
.Media
;
38 import eu
.etaxonomy
.cdm
.model
.molecular
.DnaSample
;
39 import eu
.etaxonomy
.cdm
.model
.molecular
.Sequence
;
40 import eu
.etaxonomy
.cdm
.model
.molecular
.SingleRead
;
41 import eu
.etaxonomy
.cdm
.model
.name
.TaxonName
;
42 import eu
.etaxonomy
.cdm
.model
.occurrence
.DerivedUnit
;
43 import eu
.etaxonomy
.cdm
.model
.occurrence
.FieldUnit
;
44 import eu
.etaxonomy
.cdm
.model
.occurrence
.MediaSpecimen
;
45 import eu
.etaxonomy
.cdm
.model
.occurrence
.SpecimenOrObservationType
;
46 import eu
.etaxonomy
.cdm
.model
.reference
.Reference
;
47 import eu
.etaxonomy
.cdm
.model
.taxon
.TaxonBase
;
48 import eu
.etaxonomy
.cdm
.model
.taxon
.TaxonRelationship
;
49 import eu
.etaxonomy
.cdm
.model
.taxon
.TaxonRelationshipType
;
50 import eu
.etaxonomy
.cdm
.persistence
.hibernate
.CdmDataChangeMap
;
51 import eu
.etaxonomy
.taxeditor
.model
.AbstractUtility
;
52 import eu
.etaxonomy
.taxeditor
.model
.FeatureNodeContainer
;
53 import eu
.etaxonomy
.taxeditor
.model
.IDerivedUnitFacadePart
;
54 import eu
.etaxonomy
.taxeditor
.model
.MessagingUtils
;
55 import eu
.etaxonomy
.taxeditor
.model
.PolytomousKeyRelationship
;
56 import eu
.etaxonomy
.taxeditor
.preference
.IPreferenceKeys
;
57 import eu
.etaxonomy
.taxeditor
.preference
.PreferencesUtil
;
58 import eu
.etaxonomy
.taxeditor
.store
.UsageTermCollection
;
59 import eu
.etaxonomy
.taxeditor
.ui
.element
.AbstractFormSection
;
60 import eu
.etaxonomy
.taxeditor
.ui
.element
.RootElement
;
61 import eu
.etaxonomy
.taxeditor
.ui
.section
.agent
.PersonDetailSection
;
62 import eu
.etaxonomy
.taxeditor
.ui
.section
.agent
.TeamDetailSection
;
63 import eu
.etaxonomy
.taxeditor
.ui
.section
.agent
.TeamOrPersonBaseDetailSection
;
64 import eu
.etaxonomy
.taxeditor
.ui
.section
.common
.ReferencedEntityDetailSection
;
65 import eu
.etaxonomy
.taxeditor
.ui
.section
.description
.DescriptionDetailSection
;
66 import eu
.etaxonomy
.taxeditor
.ui
.section
.description
.DescriptionElementDetailSection
;
67 import eu
.etaxonomy
.taxeditor
.ui
.section
.description
.DescriptionElementMediaSection
;
68 import eu
.etaxonomy
.taxeditor
.ui
.section
.description
.DescriptionElementSourceSection
;
69 import eu
.etaxonomy
.taxeditor
.ui
.section
.description
.DescriptionSourceSection
;
70 import eu
.etaxonomy
.taxeditor
.ui
.section
.description
.MediaDetailsSection
;
71 import eu
.etaxonomy
.taxeditor
.ui
.section
.description
.NaturalLanguageSection
;
72 import eu
.etaxonomy
.taxeditor
.ui
.section
.description
.ScopeSection
;
73 import eu
.etaxonomy
.taxeditor
.ui
.section
.feature
.FeatureDistributionDetailSection
;
74 import eu
.etaxonomy
.taxeditor
.ui
.section
.grantedAuthority
.GrantedAuthorityDetailSection
;
75 import eu
.etaxonomy
.taxeditor
.ui
.section
.group
.GroupDetailSection
;
76 import eu
.etaxonomy
.taxeditor
.ui
.section
.group
.MemberDetailSection
;
77 import eu
.etaxonomy
.taxeditor
.ui
.section
.key
.PolytomousKeyDetailSection
;
78 import eu
.etaxonomy
.taxeditor
.ui
.section
.key
.PolytomousKeyNodeDetailSection
;
79 import eu
.etaxonomy
.taxeditor
.ui
.section
.name
.NameRelationshipDetailSection
;
80 import eu
.etaxonomy
.taxeditor
.ui
.section
.name
.NomenclaturalStatusSection
;
81 import eu
.etaxonomy
.taxeditor
.ui
.section
.name
.NonViralNameDetailSection
;
82 import eu
.etaxonomy
.taxeditor
.ui
.section
.name
.ProtologueSection
;
83 import eu
.etaxonomy
.taxeditor
.ui
.section
.name
.TypeDesignationSection
;
84 import eu
.etaxonomy
.taxeditor
.ui
.section
.occurrence
.DerivedUnitBaseDetailSection
;
85 import eu
.etaxonomy
.taxeditor
.ui
.section
.occurrence
.DerivedUnitGeneralDetailSection
;
86 import eu
.etaxonomy
.taxeditor
.ui
.section
.occurrence
.DeterminationDetailSection
;
87 import eu
.etaxonomy
.taxeditor
.ui
.section
.occurrence
.EmptySection
;
88 import eu
.etaxonomy
.taxeditor
.ui
.section
.occurrence
.FieldUnitDetailSection
;
89 import eu
.etaxonomy
.taxeditor
.ui
.section
.occurrence
.FieldUnitGeneralDetailSection
;
90 import eu
.etaxonomy
.taxeditor
.ui
.section
.occurrence
.GatheringEventDetailSection
;
91 import eu
.etaxonomy
.taxeditor
.ui
.section
.occurrence
.association
.DerivedUnitTypeDesignationSection
;
92 import eu
.etaxonomy
.taxeditor
.ui
.section
.occurrence
.association
.TaxonAssociationDetailSection
;
93 import eu
.etaxonomy
.taxeditor
.ui
.section
.occurrence
.dna
.DnaQualityDetailSection
;
94 import eu
.etaxonomy
.taxeditor
.ui
.section
.occurrence
.dna
.DnaSampleGeneralDetailSection
;
95 import eu
.etaxonomy
.taxeditor
.ui
.section
.occurrence
.dna
.DnaSamplePreparationPreservationSection
;
96 import eu
.etaxonomy
.taxeditor
.ui
.section
.occurrence
.dna
.SampleDesignationDetailSection
;
97 import eu
.etaxonomy
.taxeditor
.ui
.section
.occurrence
.dna
.SequenceContigFileCollectionDetailSection
;
98 import eu
.etaxonomy
.taxeditor
.ui
.section
.occurrence
.dna
.SequenceGeneralDetailSection
;
99 import eu
.etaxonomy
.taxeditor
.ui
.section
.occurrence
.dna
.SequenceReferenceCollectionDetailSection
;
100 import eu
.etaxonomy
.taxeditor
.ui
.section
.occurrence
.dna
.SingleReadGeneralDetailSection
;
101 import eu
.etaxonomy
.taxeditor
.ui
.section
.occurrence
.dna
.SingleReadPherogramCollectionDetailSection
;
102 import eu
.etaxonomy
.taxeditor
.ui
.section
.occurrence
.dna
.TissueSampleGeneralDetailSection
;
103 import eu
.etaxonomy
.taxeditor
.ui
.section
.occurrence
.media
.MediaSpecimenGeneralDetailSection
;
104 import eu
.etaxonomy
.taxeditor
.ui
.section
.reference
.NomenclaturalReferenceDetailSection
;
105 import eu
.etaxonomy
.taxeditor
.ui
.section
.reference
.ReferenceDetailSection
;
106 import eu
.etaxonomy
.taxeditor
.ui
.section
.supplemental
.RightsSection
;
107 import eu
.etaxonomy
.taxeditor
.ui
.section
.supplemental
.identifier
.DerivedUnitFacadeIdentifierSection
;
108 import eu
.etaxonomy
.taxeditor
.ui
.section
.taxon
.ParsingMessagesSection
;
109 import eu
.etaxonomy
.taxeditor
.ui
.section
.taxon
.TaxonBaseDetailSection
;
110 import eu
.etaxonomy
.taxeditor
.ui
.section
.taxon
.TaxonRelationshipDetailSection
;
111 import eu
.etaxonomy
.taxeditor
.ui
.section
.user
.GroupsByUserDetailSection
;
112 import eu
.etaxonomy
.taxeditor
.ui
.section
.user
.UserDetailSection
;
113 import eu
.etaxonomy
.taxeditor
.ui
.section
.userecords
.UseRecordDetailSection
;
114 import eu
.etaxonomy
.taxeditor
.ui
.section
.vocabulary
.TermVocabularyDetailSection
;
115 import eu
.etaxonomy
.taxeditor
.view
.detail
.DetailsViewPart
;
119 * The DetailsViewer handles the content of the details view (
120 * {@link DetailsViewPart}).<br>
121 * Depending on the type of the selected element the section of the details view
128 public class DetailsViewerE4
extends AbstractCdmDataViewerE4
{
130 private ISelection selection
;
132 public DetailsViewerE4(Composite parent
) {
136 // START HACK TO MAKE THE DERIVED UNIT FACADE WORK
137 // since we are getting implementations of DerivedUnitBase from the bulk
139 // and not derived unit facade objects,
142 public void setInput(Object input
) {
144 if(input
instanceof TreeNode
){
145 input
= ((TreeNode
) input
).getValue();
147 if(input
instanceof GbifResponse
){
148 input
= ((GbifResponse
) input
).getDerivedUnitFacade();
150 if (input
.getClass().equals(DerivedUnit
.class)) {
151 DerivedUnit derivedUnit
= (DerivedUnit
)input
;
153 input
= DerivedUnitFacade
.NewInstance(derivedUnit
,
154 PreferencesUtil
.getDerivedUnitConfigurator());
155 } catch (DerivedUnitFacadeNotSupportedException e
) {
156 // 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 else if(input
instanceof FieldUnit
){
160 input
= DerivedUnitFacade
.NewInstance(SpecimenOrObservationType
.FieldUnit
, (FieldUnit
) input
);
162 super.setInput(input
);
168 protected void showParts() {
169 // FIXME (CM) : Need to clean out this code.
170 // Too much type checking to decide which detail view to display.
171 // Need to build in a mechanism where navigators / editors are 'aware'
172 // of the corresponding detail viewer.
174 Object input
= getInput();
177 if (input
instanceof TaxonBase
) {
178 if(((TaxonBase
) input
).getName()==null){
179 createEmptySection(rootElement
);
182 createTaxonSections(rootElement
);
185 } else if (input
instanceof TaxonName
) {
186 createNameSections(rootElement
);
188 } else if (input
instanceof Reference
) {
189 createReferenceSections(rootElement
);
191 } else if (input
instanceof Team
) {
192 createTeamDetailSection(rootElement
);
194 } else if (input
instanceof Person
) {
195 createPersonDetailSection(rootElement
);
197 } else if (input
instanceof TeamOrPersonBase
) {
198 createTeamOrPersonBaseDetailSection(rootElement
);
200 } else if (input
instanceof DescriptionBase
) {
201 if(input
instanceof SpecimenDescription
){
202 //TODO: add more sections to DetailsView for SpecimenDescription
203 createSpecimenDescriptionSection(rootElement
);
206 Set
<Marker
> descriptionMarkers
= ((DescriptionBase
<?
>) input
).getMarkers();
208 Boolean isUseDescription
= false;
209 for (Marker marker
: descriptionMarkers
) {
210 if (marker
.getMarkerType()!= null && marker
.getMarkerType().getUuid().equals(UsageTermCollection
.uuidUseMarkerType
)) {
211 isUseDescription
= true;
214 if (((DescriptionBase
<?
>) input
).isImageGallery()) {
215 createImageGallerySection(rootElement
);
217 } else if (isUseDescription
) {
218 createUseDescriptionSection(rootElement
);
220 createDescriptionSection(rootElement
);
224 } else if (input
instanceof DescriptionElementBase
) {
225 Set
<Marker
> descriptionMarkers
= ((DescriptionElementBase
) input
).getInDescription().getMarkers();
227 Boolean isUseDescription
= false;
228 for (Marker marker
: descriptionMarkers
) {
229 if (marker
.getMarkerType()!= null && marker
.getMarkerType().getUuid().equals(UsageTermCollection
.uuidUseMarkerType
)) {
230 isUseDescription
= true;
234 if (isUseDescription
== true && input
instanceof CategoricalData
) {
235 createUseRecordSection(rootElement
);
237 createDescriptionElementSection(rootElement
);
240 } else if (input
instanceof Media
) {
241 createMediaElementSection(rootElement
);
243 } else if (input
instanceof DerivedUnitFacade
) {
244 if(((DerivedUnitFacade
) input
).getType()==SpecimenOrObservationType
.FieldUnit
){
245 if(((DerivedUnitFacade
) input
).innerFieldUnit()==null){
246 MessagingUtils
.error(DetailsViewerE4
.class, "FieldUnit of facade is null", null);
249 createFieldUnitSection(rootElement
);
252 else if(((DerivedUnitFacade
) input
).getType()==SpecimenOrObservationType
.PreservedSpecimen
){
253 if(((DerivedUnitFacade
) input
).innerDerivedUnit()==null){
254 MessagingUtils
.error(DetailsViewerE4
.class, "DerivedUnit of facade is null", null);
257 createDerivedUnitBaseElementSection(rootElement
);
260 else if(((DerivedUnitFacade
) input
).getType()==SpecimenOrObservationType
.TissueSample
){
261 //TissueSample should only be created by using it's own class
262 //in future using only one class with different SpecimenOrObservationTypes is desired
263 createTissueSampleSection(rootElement
);
266 createDerivedUnitBaseElementSection(rootElement
);
268 } else if (input
instanceof DnaSample
){
269 DnaSample dnaSample
= (DnaSample
)input
;
270 if(dnaSample
.getRecordBasis()==SpecimenOrObservationType
.TissueSample
){
271 createTissueSampleSection(rootElement
);
273 else if(dnaSample
.getRecordBasis()==SpecimenOrObservationType
.DnaSample
){
274 createDnaSampleSection(rootElement
);
276 } else if (input
instanceof MediaSpecimen
){
277 createMediaSpecimenSection(rootElement
);
279 else if(input
instanceof Sequence
){
280 createSequenceSection(rootElement
);
282 else if(input
instanceof SingleRead
){
283 createSingleReadSection(rootElement
);
285 else if (input
instanceof FeatureNodeContainer
) {
286 createFeatureDistributionSection(rootElement
);
288 }else if ((input
instanceof PolytomousKeyNode
) || (input
instanceof PolytomousKeyRelationship
)) {
289 createPolytomousKeyNodeSection(rootElement
);
290 } else if (input
instanceof User
) {
291 createUserSection(rootElement
);
292 } else if (input
instanceof Group
) {
293 createGroupSection(rootElement
);
294 } else if (input
instanceof TaxonRelationship
&& ((TaxonRelationship
)input
).getType().equals(TaxonRelationshipType
.MISAPPLIED_NAME_FOR())) {
295 createMisappliedNameSection(rootElement
);
296 }else if (input
instanceof TaxonRelationship
) {
297 createTaxonRelationshipSection(rootElement
);
298 } else if (input
instanceof TermVocabulary
) {
299 createTermVocabularySection(rootElement
);
300 } else if (input
instanceof DefinedTermBase
) {
301 createDefinedTermSection(rootElement
);
304 createEmptySection(rootElement
);
311 private void createEmptySection(RootElement parent
) {
314 EmptySection emptySection
= formFactory
.createEmptySection(formFactory
, parent
, SWT
.NONE
);
316 addPart(emptySection
);
319 private void createGroupSection(RootElement parent
) {
322 GroupDetailSection groupDetailSection
= formFactory
.createGroupDetailSection(getConversationHolder(), parent
, this, ExpandableComposite
.TWISTIE
| ExpandableComposite
.EXPANDED
);
323 MemberDetailSection memberDetailSection
= formFactory
.createMemberDetailSection(getConversationHolder(), parent
, ExpandableComposite
.TWISTIE
| ExpandableComposite
.EXPANDED
);
324 GrantedAuthorityDetailSection grantedAuthorityDetailSection
= formFactory
.createGrantedAuthorityDetailSection(getConversationHolder(), parent
,ExpandableComposite
.TWISTIE
| ExpandableComposite
.EXPANDED
);
326 addPart(groupDetailSection
);
327 addPart(memberDetailSection
);
328 addPart(grantedAuthorityDetailSection
);
333 public ISelection
getSelection() {
339 public void setSelection(ISelection selection
, boolean reveal
) {
341 this.selection
= selection
;
343 if(this.selection
!=null){
344 SelectionChangedEvent selectionChangedEvent
= new SelectionChangedEvent(this, selection
);
345 fireSelectionChanged(selectionChangedEvent
);
350 private void createTaxonSections(RootElement parent
) {
353 ParsingMessagesSection parsingMessagesSection
= formFactory
.createParsingMessagesSection(getConversationHolder(), parent
, this,
354 ExpandableComposite
.EXPANDED
| ExpandableComposite
.EXPANDED
);
355 if (!PreferencesUtil
.getPreferenceStore().getBoolean(IPreferenceKeys
.SHOW_SIMPLE_NAME_DETAILS_SECTION
)){
356 TaxonBaseDetailSection taxonBaseDetailSection
= formFactory
.createTaxonBaseDetailSection(getConversationHolder(), parent
, this,
357 ExpandableComposite
.TWISTIE
| ExpandableComposite
.EXPANDED
);
358 formFactory
.createHorizontalSeparator(parent
, SWT
.BORDER
);
359 addPart(taxonBaseDetailSection
);
361 if (PreferencesUtil
.getPreferenceStore().getBoolean(IPreferenceKeys
.SHOW_SIMPLE_NAME_DETAILS_TAXON
)){
362 TaxonBaseDetailSection taxonBaseDetailSection
= formFactory
.createTaxonBaseDetailSection(getConversationHolder(), parent
, this,
363 ExpandableComposite
.TWISTIE
| ExpandableComposite
.EXPANDED
);
364 formFactory
.createHorizontalSeparator(parent
, SWT
.BORDER
);
366 addPart(taxonBaseDetailSection
);
369 NonViralNameDetailSection nonViralNameSection
= formFactory
370 .createNonViralNameDetailSection(getConversationHolder(), parent
, this, true,
371 ExpandableComposite
.TWISTIE
| ExpandableComposite
.EXPANDED
);
372 formFactory
.createHorizontalSeparator(parent
, SWT
.BORDER
);
373 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
))){
374 NomenclaturalReferenceDetailSection referenceDetailSection
= formFactory
.createNomenclaturalReferenceDetailSection(getConversationHolder(), parent
, this,
375 ExpandableComposite
.TWISTIE
| ExpandableComposite
.EXPANDED
);
376 formFactory
.createHorizontalSeparator(parent
, SWT
.BORDER
);
377 addPart(referenceDetailSection
);
380 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
))){
381 NomenclaturalStatusSection nomenclaturalStatusSection
= formFactory
.createNomenclaturalStatusSection(getConversationHolder(), parent
,
382 ExpandableComposite
.TWISTIE
| ExpandableComposite
.EXPANDED
);
383 formFactory
.createHorizontalSeparator(parent
, SWT
.BORDER
);
384 addPart(nomenclaturalStatusSection
);
387 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
))){
388 ProtologueSection protologSection
= formFactory
.createProtologueSection(getConversationHolder(), parent
, ExpandableComposite
.TWISTIE
);
389 formFactory
.createHorizontalSeparator(parent
, SWT
.BORDER
);
390 addPart(protologSection
);
393 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
))){
394 TypeDesignationSection typeDesignationSection
= formFactory
.createTypeDesignationSection(getConversationHolder(), parent
, ExpandableComposite
.TWISTIE
);
395 formFactory
.createHorizontalSeparator(parent
, SWT
.BORDER
);
396 addPart(typeDesignationSection
);
399 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
))){
400 NameRelationshipDetailSection nameRelationshipSection
= formFactory
.createNameRelationshipDetailSection(getConversationHolder(), parent
, ExpandableComposite
.TWISTIE
);
401 formFactory
.createHorizontalSeparator(parent
, SWT
.BORDER
);
402 addPart(nameRelationshipSection
);
406 addPart(parsingMessagesSection
);
408 addPart(nonViralNameSection
);
412 private void createNameSections(RootElement parent
) {
414 NonViralNameDetailSection nonViralNameSection
= formFactory
.createNonViralNameDetailSection(
415 getConversationHolder(), parent
, this, false, ExpandableComposite
.TWISTIE
416 | ExpandableComposite
.EXPANDED
);
417 formFactory
.createHorizontalSeparator(parent
, SWT
.BORDER
);
419 NomenclaturalReferenceDetailSection referenceDetailSection
= formFactory
.createNomenclaturalReferenceDetailSection(getConversationHolder(), parent
, this,
420 ExpandableComposite
.TWISTIE
| ExpandableComposite
.EXPANDED
);
421 formFactory
.createHorizontalSeparator(parent
, SWT
.BORDER
);
423 NomenclaturalStatusSection nomenclaturalStatusSection
= formFactory
.createNomenclaturalStatusSection(getConversationHolder(), parent
,
424 ExpandableComposite
.TWISTIE
| ExpandableComposite
.EXPANDED
);
425 formFactory
.createHorizontalSeparator(parent
, SWT
.BORDER
);
427 addPart(nonViralNameSection
);
428 addPart(nomenclaturalStatusSection
);
429 addPart(referenceDetailSection
);
431 ProtologueSection protologSection
= formFactory
.createProtologueSection(getConversationHolder(), parent
, ExpandableComposite
.TWISTIE
);
432 formFactory
.createHorizontalSeparator(parent
, SWT
.BORDER
);
434 TypeDesignationSection typeDesignationSection
= formFactory
.createTypeDesignationSection(getConversationHolder(), parent
, ExpandableComposite
.TWISTIE
);
435 formFactory
.createHorizontalSeparator(parent
, SWT
.BORDER
);
437 NameRelationshipDetailSection nameRelationshipSection
= formFactory
.createNameRelationshipDetailSection(getConversationHolder(), parent
, ExpandableComposite
.TWISTIE
);
438 formFactory
.createHorizontalSeparator(parent
, SWT
.BORDER
);
439 addPart(protologSection
);
440 addPart(typeDesignationSection
);
441 addPart(nameRelationshipSection
);
445 private void createReferenceSections(RootElement parent
) {
448 ReferenceDetailSection referenceDetailSection
= formFactory
.createReferenceDetailSection(getConversationHolder(), parent
, this,
449 ExpandableComposite
.TWISTIE
| ExpandableComposite
.EXPANDED
);
451 addPart(referenceDetailSection
);
454 private void createTeamOrPersonBaseDetailSection(RootElement parent
) {
456 TeamOrPersonBaseDetailSection teamOrPersonBaseDetailSection
= formFactory
.createTeamOrPersonBaseDetailSection(getConversationHolder(), parent
, this, ExpandableComposite
.TWISTIE
| ExpandableComposite
.EXPANDED
);
458 addPart(teamOrPersonBaseDetailSection
);
461 private void createTeamDetailSection(RootElement parent
) {
463 TeamDetailSection teamDetailSection
= formFactory
.createTeamDetailSection(getConversationHolder(), parent
, ExpandableComposite
.TWISTIE
| ExpandableComposite
.EXPANDED
);
465 addPart(teamDetailSection
);
468 private void createPersonDetailSection(RootElement parent
) {
470 PersonDetailSection personDetailSection
= formFactory
.createPersonDetailSection(getConversationHolder(), parent
, ExpandableComposite
.TWISTIE
| ExpandableComposite
.EXPANDED
);
471 addPart(personDetailSection
);
474 private void createDescriptionElementSection(RootElement parent
) {
477 DescriptionElementDetailSection descriptionElementDetailSection
= formFactory
.createDescriptionElementDetailSection(getConversationHolder(), parent
, this, ExpandableComposite
.TWISTIE
| ExpandableComposite
.EXPANDED
);
479 // IntextReferenceSection intextReferenceSection = formFactory.createIntextReferenceSection(getConversationHolder(), parent, ExpandableComposite.TWISTIE);
481 formFactory
.createHorizontalSeparator(parent
, SWT
.BORDER
);
483 DescriptionElementSourceSection descriptionElementSourceSection
= formFactory
.createDescriptionElementSourceSection(getConversationHolder(), parent
, ExpandableComposite
.TWISTIE
);
485 formFactory
.createHorizontalSeparator(parent
, SWT
.BORDER
);
487 DescriptionElementMediaSection descriptionElementMediaSection
= formFactory
.createDescriptionElementMediaSection(getConversationHolder(), parent
, ExpandableComposite
.TWISTIE
);
489 formFactory
.createHorizontalSeparator(parent
, SWT
.BORDER
);
491 addPart(descriptionElementDetailSection
);
492 addPart(descriptionElementSourceSection
);
493 addPart(descriptionElementMediaSection
);
496 private void createDescriptionSection(RootElement parent
) {
498 DescriptionDetailSection descriptionDetailSection
= formFactory
.createDescriptionDetailSection(getConversationHolder(), parent
, this, ExpandableComposite
.TWISTIE
| ExpandableComposite
.EXPANDED
);
500 formFactory
.createHorizontalSeparator(parent
, SWT
.BORDER
);
502 NaturalLanguageSection naturalLanguageSection
= formFactory
.createNaturalLanguageSection(getConversationHolder(), parent
, this, ExpandableComposite
.TWISTIE
| ExpandableComposite
.EXPANDED
);
504 formFactory
.createHorizontalSeparator(parent
, SWT
.BORDER
);
506 // DescribedSpecimenSection describedSpecimenSection = formFactory.createDescribedSpecimenSection(getConversationHolder(), parent, ExpandableComposite.TWISTIE);
508 // formFactory.createHorizontalSeparator(parent, SWT.BORDER);
510 // DescriptionSourceSection descriptionSourceSection = (DescriptionSourceSection) formFactory
511 // .createEntityDetailSection(EntityDetailType.DESCRIPTIONSOURCE,
512 // getConversationHolder(), parent, Section.TWISTIE);
514 // formFactory.createHorizontalSeparator(parent, SWT.BORDER);
516 ScopeSection scopeSection
= formFactory
.createScopeSection(getConversationHolder(), parent
, ExpandableComposite
.TWISTIE
);
518 formFactory
.createHorizontalSeparator(parent
, SWT
.BORDER
);
520 addPart(descriptionDetailSection
);
521 addPart(naturalLanguageSection
);
522 // addPart(describedSpecimenSection);
523 // addPart(descriptionSourceSection);
524 addPart(scopeSection
);
527 private void createSpecimenDescriptionSection(RootElement parent
) {
529 DescriptionDetailSection descriptionDetailSection
= formFactory
.createDescriptionDetailSection(getConversationHolder(), parent
, this, ExpandableComposite
.TWISTIE
| ExpandableComposite
.EXPANDED
);
530 addPart(descriptionDetailSection
);
533 private void createUseDescriptionSection(RootElement parent
) {
535 DescriptionDetailSection descriptionDetailSection
= formFactory
.createDescriptionDetailSection(getConversationHolder(), parent
, this, ExpandableComposite
.TWISTIE
| ExpandableComposite
.EXPANDED
);
537 formFactory
.createHorizontalSeparator(parent
, SWT
.BORDER
);
539 DescriptionSourceSection descriptionSourceSection
= formFactory
.createDescriptionSourceSection(getConversationHolder(), parent
, ExpandableComposite
.TWISTIE
| ExpandableComposite
.EXPANDED
);
541 formFactory
.createHorizontalSeparator(parent
, SWT
.BORDER
);
543 addPart(descriptionDetailSection
);
544 addPart(descriptionSourceSection
);
548 private void createImageGallerySection(RootElement parent
) {
550 DescriptionDetailSection descriptionDetailSection
= formFactory
.createDescriptionDetailSection(getConversationHolder(), parent
, this, ExpandableComposite
.TWISTIE
| ExpandableComposite
.EXPANDED
);
552 addPart(descriptionDetailSection
);
555 private void createMediaElementSection(RootElement parent
) {
558 MediaDetailsSection mediaDetailSection
= formFactory
.createMediaDetailsSection(getConversationHolder(), parent
, this, ExpandableComposite
.TWISTIE
| ExpandableComposite
.EXPANDED
);
560 addPart(mediaDetailSection
);
563 private void createDerivedUnitBaseElementSection(RootElement parent
) {
566 DerivedUnitGeneralDetailSection derivedUnitGeneralDetailSection
= formFactory
.createDerivedUnitGeneralDetailSection(getConversationHolder(), parent
, this, ExpandableComposite
.TWISTIE
| ExpandableComposite
.EXPANDED
);
567 //TODO for DerivateEditor do not use facade anymore to avoid this special case handling #4539
568 if(!(AbstractUtility
.getActiveE4Part() instanceof IDerivedUnitFacadePart
)){
569 derivedUnitGeneralDetailSection
.setShowOnlyDerivedUnitData(true);
571 addPart(derivedUnitGeneralDetailSection
);
573 formFactory
.createHorizontalSeparator(parent
, SWT
.BORDER
);
575 DerivedUnitBaseDetailSection derivedUnitBaseDetailSection
= formFactory
.createDerivedUnitBaseDetailSection(getConversationHolder(), parent
, this, ExpandableComposite
.TWISTIE
| ExpandableComposite
.EXPANDED
);
576 addPart(derivedUnitBaseDetailSection
);
578 //for editors working with facades
579 if(AbstractUtility
.getActiveE4Part() instanceof IDerivedUnitFacadePart
){
580 formFactory
.createHorizontalSeparator(parent
, SWT
.BORDER
);
581 GatheringEventDetailSection gatheringEventDetailSection
= formFactory
.createGatheringEventDetailSection(getConversationHolder(), parent
, this, ExpandableComposite
.TWISTIE
);
582 addPart(gatheringEventDetailSection
);
584 formFactory
.createHorizontalSeparator(parent
, SWT
.BORDER
);
585 FieldUnitDetailSection fieldUnitDetailSection
= formFactory
.createFieldUnitDetailSection(getConversationHolder(), parent
, this, ExpandableComposite
.TWISTIE
);
586 addPart(fieldUnitDetailSection
);
590 if(PreferencesUtil
.getPreferenceStore().getBoolean(IPreferenceKeys
.SHOW_TAXON_ASSOCIATIONS
)){
591 formFactory
.createHorizontalSeparator(parent
, SWT
.BORDER
);
592 TaxonAssociationDetailSection taxonAssociationDetailSection
= formFactory
.createTaxonAssociationDetailSection(getConversationHolder(), parent
, this, ExpandableComposite
.TWISTIE
| ExpandableComposite
.EXPANDED
);
593 addPart(taxonAssociationDetailSection
);
595 formFactory
.createHorizontalSeparator(parent
, SWT
.BORDER
);
596 DerivedUnitFacadeIdentifierSection identifierDetailSection
= formFactory
.createDerivedUnitFacadeIdentifierSection(getConversationHolder(), parent
, ExpandableComposite
.TWISTIE
);
597 addPart(identifierDetailSection
);
599 if(!PreferencesUtil
.getPreferenceStore().getBoolean(IPreferenceKeys
.DETERMINATION_ONLY_FOR_FIELD_UNITS
)){
600 formFactory
.createHorizontalSeparator(parent
, SWT
.BORDER
);
601 DeterminationDetailSection determinationDetailSection
= formFactory
.createDeterminationDetailSection(getConversationHolder(), parent
, this, ExpandableComposite
.TWISTIE
);
602 addPart(determinationDetailSection
);
605 formFactory
.createHorizontalSeparator(parent
, SWT
.BORDER
);
606 DerivedUnitTypeDesignationSection derivedUnitTypeDesignationSection
= formFactory
.createDerivedUnitTypeDesignationSection(getConversationHolder(), parent
, this, ExpandableComposite
.TWISTIE
);
607 addPart(derivedUnitTypeDesignationSection
);
611 private void createFieldUnitSection(RootElement parent
) {
614 FieldUnitGeneralDetailSection fielUnitGeneralDetailSection
= formFactory
.createFieldUnitGeneralDetailSection(getConversationHolder(), parent
, this, ExpandableComposite
.TWISTIE
| ExpandableComposite
.EXPANDED
);
616 formFactory
.createHorizontalSeparator(parent
, SWT
.BORDER
);
618 GatheringEventDetailSection gatheringEventDetailSection
= formFactory
.createGatheringEventDetailSection(getConversationHolder(), parent
, this, ExpandableComposite
.TWISTIE
);
620 formFactory
.createHorizontalSeparator(parent
, SWT
.BORDER
);
622 FieldUnitDetailSection fieldUnitDetailSection
= formFactory
.createFieldUnitDetailSection(getConversationHolder(), parent
, this, ExpandableComposite
.TWISTIE
);
624 addPart(fielUnitGeneralDetailSection
);
625 addPart(gatheringEventDetailSection
);
626 addPart(fieldUnitDetailSection
);
628 if(PreferencesUtil
.getPreferenceStore().getBoolean(IPreferenceKeys
.DETERMINATION_ONLY_FOR_FIELD_UNITS
)){
629 formFactory
.createHorizontalSeparator(parent
, SWT
.BORDER
);
630 DeterminationDetailSection determinationDetailSection
= formFactory
.createDeterminationDetailSection(getConversationHolder(), parent
, this, ExpandableComposite
.TWISTIE
);
631 addPart(determinationDetailSection
);
635 private void createTissueSampleSection(RootElement parent
) {
638 TissueSampleGeneralDetailSection section
= formFactory
.createTissueSampleGeneralDetailSection(getConversationHolder(), parent
, this, ExpandableComposite
.TWISTIE
| ExpandableComposite
.EXPANDED
);
640 formFactory
.createHorizontalSeparator(parent
, SWT
.BORDER
);
642 SampleDesignationDetailSection sampleDesignationDetailSection
= formFactory
.createSampleDesignationDetailSection(getConversationHolder(), parent
, this, ExpandableComposite
.TWISTIE
| ExpandableComposite
.EXPANDED
);
645 addPart(sampleDesignationDetailSection
);
648 private void createDnaSampleSection(RootElement parent
) {
651 DnaSampleGeneralDetailSection section
= formFactory
.createDnaSampleGeneralDetailSection(getConversationHolder(), parent
, this, ExpandableComposite
.TWISTIE
| ExpandableComposite
.EXPANDED
);
653 formFactory
.createHorizontalSeparator(parent
, SWT
.BORDER
);
655 DnaSamplePreparationPreservationSection preparationPreservationSection
= formFactory
.createDnaSamplePreparationPreservationSection(getConversationHolder(), parent
, this, ExpandableComposite
.TWISTIE
| ExpandableComposite
.EXPANDED
);
657 formFactory
.createHorizontalSeparator(parent
, SWT
.BORDER
);
659 DnaQualityDetailSection qualitySection
= formFactory
.createDnaQualityDetailSection(getConversationHolder(), parent
, this, ExpandableComposite
.TWISTIE
| ExpandableComposite
.EXPANDED
);
661 formFactory
.createHorizontalSeparator(parent
, SWT
.BORDER
);
663 SampleDesignationDetailSection sampleDesignationDetailSection
= formFactory
.createSampleDesignationDetailSection(getConversationHolder(), parent
, this, ExpandableComposite
.TWISTIE
| ExpandableComposite
.EXPANDED
);
666 addPart(preparationPreservationSection
);
667 addPart(qualitySection
);
668 addPart(sampleDesignationDetailSection
);
671 private void createSequenceSection(RootElement parent
) {
674 SequenceGeneralDetailSection section
= formFactory
.createSequenceGeneralDetailSection(getConversationHolder(), parent
, this, ExpandableComposite
.TWISTIE
| ExpandableComposite
.EXPANDED
);
676 formFactory
.createHorizontalSeparator(parent
, SWT
.BORDER
);
678 SequenceReferenceCollectionDetailSection referenceSection
= formFactory
.createSequenceReferenceCollectionDetailSection(getConversationHolder(), parent
, ExpandableComposite
.TWISTIE
| ExpandableComposite
.EXPANDED
);
680 formFactory
.createHorizontalSeparator(parent
, SWT
.BORDER
);
682 SequenceContigFileCollectionDetailSection contigFileSection
= formFactory
.createSequenceContigFileCollectionDetailSection(getConversationHolder(), parent
, ExpandableComposite
.TWISTIE
| ExpandableComposite
.EXPANDED
);
686 addPart(referenceSection
);
687 addPart(contigFileSection
);
690 private void createSingleReadSection(RootElement parent
) {
693 SingleReadGeneralDetailSection section
= formFactory
.createSingleReadGeneralDetailSection(getConversationHolder(), parent
, this, ExpandableComposite
.TWISTIE
| ExpandableComposite
.EXPANDED
);
696 formFactory
.createHorizontalSeparator(parent
, SWT
.BORDER
);
698 SingleReadPherogramCollectionDetailSection pherogramSection
= formFactory
.createSingleReadPherogramCollectionDetailSection(getConversationHolder(), parent
, ExpandableComposite
.TWISTIE
| ExpandableComposite
.EXPANDED
);
699 addPart(pherogramSection
);
703 private void createMediaSpecimenSection(RootElement parent
) {
706 MediaSpecimenGeneralDetailSection generalSection
= formFactory
.createMediaSpecimenGeneralDetailSection(getConversationHolder(), parent
, this, ExpandableComposite
.TWISTIE
| ExpandableComposite
.EXPANDED
);
707 addPart(generalSection
);
709 formFactory
.createHorizontalSeparator(parent
, SWT
.BORDER
);
711 RightsSection rightsSection
= formFactory
.createRightsSection(getConversationHolder(), parent
, ExpandableComposite
.TWISTIE
);
712 addPart(rightsSection
);
716 private void createFeatureDistributionSection(RootElement parent
) {
719 FeatureDistributionDetailSection featureDistributionSection
= formFactory
.createFeatureDistributionDetailSection(getConversationHolder(), parent
, this, ExpandableComposite
.TWISTIE
| ExpandableComposite
.EXPANDED
);
721 addPart(featureDistributionSection
);
724 private void createPolytomousKeyNodeSection(RootElement parent
) {
727 PolytomousKeyDetailSection polytomousKeyDetailSection
= formFactory
.createPolytomousKeyDetailSection(getConversationHolder(), parent
, this, ExpandableComposite
.TWISTIE
);
729 formFactory
.createHorizontalSeparator(parent
, SWT
.BORDER
);
731 PolytomousKeyNodeDetailSection polytomousKeyNodeDetailSection
= formFactory
.createPolytomousKeyNodeDetailSection(getConversationHolder(), parent
, this, ExpandableComposite
.TWISTIE
| ExpandableComposite
.EXPANDED
);
733 addPart(polytomousKeyDetailSection
);
734 addPart(polytomousKeyNodeDetailSection
);
738 private void createUseRecordSection(RootElement parent
) {
741 UseRecordDetailSection descriptionUseRecordSection
= formFactory
.createUseRecordDetailSection(getConversationHolder(), parent
, this,ExpandableComposite
.TWISTIE
| ExpandableComposite
.EXPANDED
);
743 formFactory
.createHorizontalSeparator(parent
, SWT
.BORDER
);
745 addPart(descriptionUseRecordSection
);
750 private void createUserSection(RootElement parent
) {
753 UserDetailSection userDetailSection
= formFactory
.createUserDetailSection(getConversationHolder(), parent
, this, ExpandableComposite
.TWISTIE
| ExpandableComposite
.EXPANDED
);
755 GroupsByUserDetailSection groupByUserDetailSection
= formFactory
.createGroupsByUserDetailSection(getConversationHolder(), parent
, ExpandableComposite
.TWISTIE
| ExpandableComposite
.EXPANDED
);
757 addPart(userDetailSection
);
758 addPart(groupByUserDetailSection
);
761 private void createMisappliedNameSection(RootElement parent
) {
764 TaxonRelationshipDetailSection taxonRelationshipDetailSection
= formFactory
.createTaxonRelationshipDetailSection(getConversationHolder(), parent
, this, ExpandableComposite
.TWISTIE
| ExpandableComposite
.EXPANDED
);
766 // ReferencedEntityDetailSection referencedEntityBaseDetailSection = formFactory.createReferencedEntityDetailSection(getConversationHolder(), parent, this, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
767 addPart(taxonRelationshipDetailSection
);
768 //addPart(referencedEntityBaseDetailSection);
770 NonViralNameDetailSection nonViralNameSection
= formFactory
771 .createNonViralNameDetailSection(getConversationHolder(), parent
, this, true,
772 ExpandableComposite
.TWISTIE
| ExpandableComposite
.EXPANDED
);
773 addPart(nonViralNameSection
);
774 formFactory
.createHorizontalSeparator(parent
, SWT
.BORDER
);
775 //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))){
776 NomenclaturalReferenceDetailSection referenceDetailSection
= formFactory
.createNomenclaturalReferenceDetailSection(getConversationHolder(), parent
, this,
777 ExpandableComposite
.TWISTIE
| ExpandableComposite
.EXPANDED
);
778 formFactory
.createHorizontalSeparator(parent
, SWT
.BORDER
);
779 addPart(referenceDetailSection
);
781 //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))){
782 NomenclaturalStatusSection nomenclaturalStatusSection
= formFactory
.createNomenclaturalStatusSection(getConversationHolder(), parent
,
783 ExpandableComposite
.TWISTIE
| ExpandableComposite
.EXPANDED
);
784 formFactory
.createHorizontalSeparator(parent
, SWT
.BORDER
);
785 addPart(nomenclaturalStatusSection
);
788 //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))){
789 ProtologueSection protologSection
= formFactory
.createProtologueSection(getConversationHolder(), parent
, ExpandableComposite
.TWISTIE
);
790 formFactory
.createHorizontalSeparator(parent
, SWT
.BORDER
);
791 addPart(protologSection
);
794 //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))){
795 TypeDesignationSection typeDesignationSection
= formFactory
.createTypeDesignationSection(getConversationHolder(), parent
, ExpandableComposite
.TWISTIE
);
796 formFactory
.createHorizontalSeparator(parent
, SWT
.BORDER
);
797 addPart(typeDesignationSection
);
800 //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))){
801 NameRelationshipDetailSection nameRelationshipSection
= formFactory
.createNameRelationshipDetailSection(getConversationHolder(), parent
, ExpandableComposite
.TWISTIE
);
802 formFactory
.createHorizontalSeparator(parent
, SWT
.BORDER
);
803 addPart(nameRelationshipSection
);
810 private void createTaxonRelationshipSection(RootElement parent
) {
813 TaxonRelationshipDetailSection taxonRelationshipDetailSection
= formFactory
.createTaxonRelationshipDetailSection(getConversationHolder(), parent
, this, ExpandableComposite
.TWISTIE
| ExpandableComposite
.EXPANDED
);
815 ReferencedEntityDetailSection referencedEntityBaseDetailSection
= formFactory
.createReferencedEntityDetailSection(getConversationHolder(), parent
, this, ExpandableComposite
.TWISTIE
| ExpandableComposite
.EXPANDED
);
816 addPart(taxonRelationshipDetailSection
);
817 addPart(referencedEntityBaseDetailSection
);
819 private void createTermVocabularySection(RootElement parent
) {
822 TermVocabularyDetailSection termVocabularyDetailSection
= formFactory
.createTermVocabularyDetailSection(getConversationHolder(), parent
, this, ExpandableComposite
.TWISTIE
| ExpandableComposite
.EXPANDED
);
823 addPart(termVocabularyDetailSection
);
826 private void createDefinedTermSection(RootElement parent
) {
829 AbstractFormSection
<?
> definedTermDetailSection
= formFactory
.createDefinedTermDetailSection(getInput().getClass(), getConversationHolder(), parent
, this, ExpandableComposite
.TWISTIE
| ExpandableComposite
.EXPANDED
);
830 addPart(definedTermDetailSection
);
834 public void update(CdmDataChangeMap arg0
) {