Fixing problems with image handling.
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / ui / forms / AbstractFormSection.java
index d1587708d4ca1a5956b1836e5e4179525257b971..22f297271623a733b8a6480fb115d442a25f37be 100644 (file)
@@ -33,9 +33,6 @@ import eu.etaxonomy.cdm.api.conversation.ConversationHolder;
 import eu.etaxonomy.cdm.api.conversation.IConversationEnabled;
 import eu.etaxonomy.cdm.persistence.hibernate.CdmDataChangeMap;
 import eu.etaxonomy.taxeditor.store.StoreUtil;
-import eu.etaxonomy.taxeditor.ui.selection.AbstractSelectionElement;
-import eu.etaxonomy.taxeditor.ui.term.AbstractEnumComboElement;
-import eu.etaxonomy.taxeditor.ui.term.AbstractTermComboElement;
 
 /**
  * <p>Abstract AbstractFormSection class.</p>
@@ -180,6 +177,27 @@ public abstract class AbstractFormSection<ENTITY> extends Section implements ISe
                }
        }
        
+
+       /**
+        * Fires a {@link CdmPropertyChangeEvent} with the given object as source.
+        *  
+        * @param object the object on which the property changed
+        */
+       public void firePropertyChangeEvent(Object object){
+               firePropertyChangeEvent(object, null);
+       }
+       
+       /**
+        * Fires a {@link CdmPropertyChangeEvent} with the given object as source also containing the
+        * originating event
+        * 
+        * @param object the object on which the property changed
+        * @param originatingEvent the originating event
+        */
+       public void firePropertyChangeEvent(Object object, PropertyChangeEvent originatingEvent){
+               firePropertyChangeEvent(new CdmPropertyChangeEvent(object, originatingEvent));
+       }
+       
        /* (non-Javadoc)
         * @see org.eclipse.swt.widgets.Composite#setFocus()
         */