- extracted design and layout of GUI objects from AbstractCdmFormElement to be able...
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / ui / section / AbstractEntityCollectionSection.java
index ecc7c9107e8a6ed102df8893b5465e78a04a5525..38ecea49fe4a3f1dddee003bd4e68086474a4d82 100644 (file)
@@ -279,6 +279,16 @@ public abstract class AbstractEntityCollectionSection<ENTITY, ELEMENT> extends A
                return PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.SHOULD_EXPAND_SECTION_WHEN_DATA_AVAILABLE);
        }
 
+       /**
+        * Remove an element from the entities collection and update the section 
+        *
+        * @param element a ELEMENT object.
+        */
+       public void removeElementAndUpdate(ELEMENT element) {
+               removeElement(element);
+               internalUpdateSection(true);
+       }
+       
        /**
         * Get the specific collection of this entity
         *