ref #9939: move status section to general section and add status to section title
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / ui / section / occurrence / DerivedUnitGeneralDetailElement.java
index 2181c4ea592734d719e37521dc281b56ca44f25b..08bf5fc6adca2259126b4db8b026fe316e4377e9 100644 (file)
@@ -69,7 +69,7 @@ public class DerivedUnitGeneralDetailElement extends
        private GatheringEventUnitElement element_elevation;
        private UriWithLabelElement uriPreferredStableUri;
        private CheckboxElement checkIsPublish;
-       private TermComboElement<DefinedTermBase> combo_status;
+       private StatusCollectionDetailSection section_status;
 
 
        public DerivedUnitGeneralDetailElement(CdmFormFactory formFactory,
@@ -132,7 +132,11 @@ public class DerivedUnitGeneralDetailElement extends
                                formElement, "Accession Number", entity.getAccessionNumber(),
                                style);
                uriPreferredStableUri = formFactory.createUriWithLabelElement(formElement, "Pref. Stable URI", entity.getPreferredStableUri(), style);
-        checkIsPublish = formFactory.createCheckbox(formElement, "Publish", entity.innerDerivedUnit().isPublish(), style);
+               section_status = formFactory.createStatusCollectionDetailSection(getConversationHolder(), formElement, StoreUtil.getSectionStyle(SourceCollectionDetailSection.class, entity.getClass().getCanonicalName()));
+               section_status.setLayoutData(LayoutConstants.FILL_HORIZONTALLY(2, 1));
+               section_status.setEntity(entity);
+               
+               checkIsPublish = formFactory.createCheckbox(formElement, "Publish", entity.innerDerivedUnit().isPublish(), style);
 
        }