Cleanup
authorCherian Mathew <c.mathew@bgbm.org>
Mon, 23 Nov 2015 16:06:50 +0000 (17:06 +0100)
committerCherian Mathew <c.mathew@bgbm.org>
Mon, 23 Nov 2015 16:06:50 +0000 (17:06 +0100)
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/description/DescriptionElementSourceSection.java

index bbd8752..1546ffa 100644 (file)
@@ -9,7 +9,6 @@ import eu.etaxonomy.cdm.api.conversation.ConversationHolder;
 import eu.etaxonomy.cdm.model.common.OriginalSourceType;
 import eu.etaxonomy.cdm.model.description.DescriptionElementBase;
 import eu.etaxonomy.cdm.model.description.DescriptionElementSource;
-import eu.etaxonomy.taxeditor.model.MessagingUtils;
 import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
 import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement;
 import eu.etaxonomy.taxeditor.ui.section.AbstractEntityCollectionSection;
@@ -38,10 +37,6 @@ public class DescriptionElementSourceSection extends AbstractEntityCollectionSec
        /** {@inheritDoc} */
        @Override
        public DescriptionElementSource createNewElement() {
-          /* if(getEntity().getId() == 0) {
-               MessagingUtils.warningDialog("Description not saved", this, "Please save the newly created description before adding source");
-               return null;
-           }*/
                return DescriptionElementSource.NewInstance(OriginalSourceType.PrimaryTaxonomicSource);
        }