ref #8136: shorter reference detail label
authorKatja Luther <k.luther@bgbm.org>
Thu, 11 Apr 2019 09:10:58 +0000 (11:10 +0200)
committerKatja Luther <k.luther@bgbm.org>
Thu, 11 Apr 2019 09:10:58 +0000 (11:10 +0200)
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/name/AbstractTypeDesignationElement.java

index 334674237893e902c5df5e0f1fc0325b3924bdb9..adf31bd987cf952bef369804982d0cfad6b9139e 100644 (file)
@@ -11,7 +11,6 @@ package eu.etaxonomy.taxeditor.ui.section.name;
 
 import java.util.Iterator;
 
-import org.eclipse.swt.SWT;
 import org.eclipse.swt.events.SelectionListener;
 
 import eu.etaxonomy.cdm.model.name.TypeDesignationBase;
@@ -40,6 +39,7 @@ public abstract class AbstractTypeDesignationElement<T extends TypeDesignationBa
        protected EntitySelectionElement<Reference> selection_reference;
     protected TextWithLabelElement text_referenceDetail;
     protected ICdmFormElement formElement;
+    protected int style;
 
        /**
         * <p>Constructor for AbstractTypeDesignationElement.</p>
@@ -62,6 +62,7 @@ public abstract class AbstractTypeDesignationElement<T extends TypeDesignationBa
        public void createControls(ICdmFormElement formElement, int style) {
                checkbox_notDesignated = formFactory.createCheckbox(formElement, "Not Designated", false, style);
                this.formElement = formElement;
+               this.style = style;
        }
 
        @Override
@@ -73,11 +74,11 @@ public abstract class AbstractTypeDesignationElement<T extends TypeDesignationBa
                    removeNotDesignatedControls();
                selection_reference = formFactory
                         .createSelectionElement(Reference.class, formElement, "Status Reference",
-                                entity.getCitation(), EntitySelectionElement.ALL, SWT.NULL);
+                                entity.getCitation(), EntitySelectionElement.ALL, style);
 
                 text_referenceDetail = formFactory.createTextWithLabelElement(
-                    formElement, "Status Reference Detail", entity.getCitationMicroReference(), SWT.NULL);
-                checkbox_notDesignated = formFactory.createCheckbox(formElement, "Not Designated", entity.isNotDesignated(), SWT.NONE);
+                    formElement, "Reference Detail", entity.getCitationMicroReference(), style);
+                checkbox_notDesignated = formFactory.createCheckbox(formElement, "Not Designated", entity.isNotDesignated(), style);
                }
         }else{
             if (selection_reference != null){