removed pop-up dialog for original source type and instead directly set the default...
authorCherian Mathew <c.mathew@bgbm.org>
Wed, 24 Jul 2013 08:52:30 +0000 (08:52 +0000)
committerCherian Mathew <c.mathew@bgbm.org>
Wed, 24 Jul 2013 08:52:30 +0000 (08:52 +0000)
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/description/DescriptionElementSourceElement.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/description/DescriptionElementSourceSection.java

index dd40dec14b634ed5866e8a0cc324b2ecef216c54..aff1fbea835495ffde973dd6c9cd5b5761e9d2bd 100644 (file)
@@ -99,6 +99,7 @@ public class DescriptionElementSourceElement extends
                text_referenceDetail.setText(entity.getCitationMicroReference());
                text_originaleNameString.setText(entity.getOriginalNameString());
                selection_name.setEntity(entity.getNameUsedInSource());
+               combo_origsourcetype.setSelection(entity.getType());
        }
 
        /** {@inheritDoc} */
index c3fa2ce5016da379824e789b62154728491a51c6..13da781151f42c72c45e1d1da2d3640d347c6c60 100644 (file)
@@ -40,13 +40,7 @@ public class DescriptionElementSourceSection extends AbstractEntityCollectionSec
        /** {@inheritDoc} */
        @Override
        public DescriptionElementSource createNewElement() {
-               OriginalSourceType ost = OriginalSourceTypeSelectionDialog.select(getShell(), getConversationHolder()); 
-               if(ost != null) {
-                       return DescriptionElementSource.NewInstance(ost);
-               } else {
-                       return null;
-               }
-
+               return DescriptionElementSource.NewInstance(OriginalSourceType.PrimaryTaxonomicSource);
        }
 
        /** {@inheritDoc} */