Merge branch 'release/5.32.0'
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / ui / section / AbstractEntityCollectionElement.java
index 7044b08db673fc3eada00ef359ee82f9a038aa94..6dcee17c97fa8f65ff79c200dd79c16ed99c39da 100644 (file)
@@ -57,13 +57,12 @@ public abstract class AbstractEntityCollectionElement<ENTITY>
         * Composite "around" the actual content. Is used for control action like e.g. remove button
         */
        private final Composite box;
-       
-       private boolean isEnabled;
 
-       
+       private boolean isEnabled;
 
        private Button btnRemove;
-    protected Button btnChooseEntity;
+
+       private Button btnChooseEntity;
 
        private Color backgroundColor;
 
@@ -114,7 +113,7 @@ public abstract class AbstractEntityCollectionElement<ENTITY>
                        btnRemove.setEnabled(isEnabled);
                }
 
-               
+
 
                setEntity(entity);
                createControls(this, style);
@@ -257,7 +256,7 @@ public abstract class AbstractEntityCollectionElement<ENTITY>
             warnForReferencedObjects.setVisible(isVisible);
         }
     }
-    
+
     @Override
        public void setEnabled(boolean enabled) {
                this.isEnabled = enabled;
@@ -267,7 +266,7 @@ public abstract class AbstractEntityCollectionElement<ENTITY>
                if (btnChooseEntity != null){
                        btnChooseEntity.setEnabled(enabled);
                }
-               
+
                for (ICdmFormElement element:this.getElements()){
                        if (element instanceof IEnableableFormElement){
                                ((IEnableableFormElement)element).setEnabled(enabled);