X-Git-Url: https://dev.e-taxonomy.eu/gitweb/taxeditor.git/blobdiff_plain/ee7cb61660ef7326b28830bc87d0721ee260d518..1bf80c0c5daafa3cf40d34be966146731c669fb9:/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/element/AbstractFormSection.java diff --git a/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/element/AbstractFormSection.java b/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/element/AbstractFormSection.java index cece9928b..6afa2b7bf 100644 --- a/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/element/AbstractFormSection.java +++ b/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/element/AbstractFormSection.java @@ -34,6 +34,7 @@ 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.model.AbstractUtility; +import eu.etaxonomy.taxeditor.model.MessagingUtils; /** *

@@ -49,9 +50,7 @@ import eu.etaxonomy.taxeditor.model.AbstractUtility; * @param */ //TODO shouldn't ENTITY be bound with super class ICdmBase for example (AbstractFormSection)? -public abstract class AbstractFormSection extends Section implements - ISelectionChangedListener, IEntityElement, - IConversationEnabled { +public abstract class AbstractFormSection extends Section implements ISelectionChangedListener, IEntityElement, IConversationEnabled { private ISelectionProvider selectionProvider; @@ -104,6 +103,7 @@ public abstract class AbstractFormSection extends Section implements client.setLayout(layout); this.setClient(client); + } /** @@ -217,7 +217,7 @@ public abstract class AbstractFormSection extends Section implements ((IPropertyChangeListener) listener).propertyChange(event); } } catch (ConcurrentModificationException e) { - AbstractUtility.warn(getClass(), "ConcurrentModificationException while handling PropertyChangeEvents." + MessagingUtils.warn(getClass(), "ConcurrentModificationException while handling PropertyChangeEvents." + " It seems like this is not critical"); } } @@ -533,7 +533,8 @@ public abstract class AbstractFormSection extends Section implements * * @return a {@link eu.etaxonomy.taxeditor.ui.element.CdmFormFactory} object. */ - public CdmFormFactory getFormFactory() { + @Override + public CdmFormFactory getFormFactory() { return formFactory; } @@ -573,7 +574,7 @@ public abstract class AbstractFormSection extends Section implements }else if(getParentElement() instanceof IConversationEnabled){ return ((IConversationEnabled) getParentElement()).getConversationHolder(); } - AbstractUtility.errorDialog("Could not get conversation for AbstractFormSection", + MessagingUtils.messageDialog("Could not get conversation for AbstractFormSection", getClass(), "There is an error in the implementation. There should have been an active editor but it wasn't", new IllegalArgumentException()); return null; @@ -581,8 +582,10 @@ public abstract class AbstractFormSection extends Section implements } /** {@inheritDoc} */ + @Override public void update(CdmDataChangeMap changeEvents) { + }