Revision 0caafa75
Added by Andreas Müller over 1 year ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/occurrence/DerivedUnitBaseDetailElement.java | ||
---|---|---|
6 | 6 |
* The contents of this file are subject to the Mozilla Public License Version 1.1 |
7 | 7 |
* See LICENSE.TXT at the top of this package for the full license terms. |
8 | 8 |
*/ |
9 |
|
|
10 | 9 |
package eu.etaxonomy.taxeditor.ui.section.occurrence; |
11 | 10 |
|
12 | 11 |
import eu.etaxonomy.cdm.api.facade.DerivedUnitFacade; |
... | ... | |
29 | 28 |
import eu.etaxonomy.taxeditor.ui.selection.EntitySelectionElement; |
30 | 29 |
|
31 | 30 |
/** |
32 |
* <p> |
|
33 |
* DerivedUnitBaseDetailElement class. |
|
34 |
* </p> |
|
35 |
* |
|
36 | 31 |
* @author n.hoffmann |
37 | 32 |
* @created Jun 24, 2010 |
38 |
* @version 1.0 |
|
39 | 33 |
*/ |
40 | 34 |
public class DerivedUnitBaseDetailElement extends |
41 | 35 |
AbstractSpecimenOrObservationDetailElement { |
... | ... | |
58 | 52 |
|
59 | 53 |
private DerivedUnitMediaSection mediaDetailElement; |
60 | 54 |
|
61 |
|
|
62 |
|
|
63 |
/** |
|
64 |
* <p> |
|
65 |
* Constructor for DerivedUnitBaseDetailElement. |
|
66 |
* </p> |
|
67 |
* |
|
68 |
* @param formFactory |
|
69 |
* a {@link eu.etaxonomy.taxeditor.ui.element.CdmFormFactory} |
|
70 |
* object. |
|
71 |
* @param formElement |
|
72 |
* a {@link eu.etaxonomy.taxeditor.ui.element.ICdmFormElement} |
|
73 |
* object. |
|
74 |
*/ |
|
75 | 55 |
public DerivedUnitBaseDetailElement(CdmFormFactory formFactory, |
76 | 56 |
ICdmFormElement formElement) { |
77 | 57 |
super(formFactory, formElement); |
... | ... | |
103 | 83 |
// we ignore this |
104 | 84 |
MessagingUtils.info(e.getMessage()); |
105 | 85 |
} |
106 |
selection_storedUnder = formFactory.createSelectionElement(TaxonName.class, //getConversationHolder(),
|
|
86 |
selection_storedUnder = formFactory.createSelectionElement(TaxonName.class, |
|
107 | 87 |
formElement, "Stored Under", entity.getStoredUnder(), EntitySelectionElement.ALL, style); |
108 | 88 |
|
109 | 89 |
try { |
... | ... | |
116 | 96 |
// section_duplicates = (SpecimenCollectionDetailSection) formFactory |
117 | 97 |
// .createEntityDetailSection( |
118 | 98 |
// EntityDetailType.SPECIMEN_COLLECTION, |
119 |
// getConversationHolder(), formElement, Section.TWISTIE);
|
|
99 |
// formElement, Section.TWISTIE); |
|
120 | 100 |
// section_duplicates |
121 | 101 |
// .setLayoutData(LayoutConstants.FILL_HORIZONTALLY(2, 1)); |
122 | 102 |
// section_duplicates.setEntity(entity); |
... | ... | |
124 | 104 |
textOriginalLabel = formFactory.createOriginalLabelDataElement(formElement); |
125 | 105 |
textOriginalLabel.setEntity(getEntity()); |
126 | 106 |
|
127 |
|
|
128 |
|
|
129 | 107 |
super.createControls(formElement, entity, style); |
130 | 108 |
|
131 |
|
|
132 | 109 |
section_source = formFactory.createSourceCollectionDetailSection(formElement, StoreUtil.getSectionStyle(SourceCollectionDetailSection.class, entity.getClass().getCanonicalName())); |
133 | 110 |
section_source.setLayoutData(LayoutConstants.FILL_HORIZONTALLY(2, 1)); |
134 | 111 |
section_source.setEntity(entity); |
... | ... | |
171 | 148 |
} |
172 | 149 |
} |
173 | 150 |
} |
174 |
} |
|
151 |
} |
Also available in: Unified diff
ref #10186 further remove ConversationHolder and cleanup