- set focus to taxon name field in new taxon wizard (#4811)
authorPatric Plitzner <p.plitzner@bgbm.org>
Thu, 30 Apr 2015 08:02:04 +0000 (08:02 +0000)
committerPatric Plitzner <p.plitzner@bgbm.org>
Thu, 30 Apr 2015 08:02:04 +0000 (08:02 +0000)
 - unified entity selection fields, all have "Browse" and "Delete" now (#2359)

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/classification/TaxonNodeDetailElement.java

index 3bac7037d5aa714e157e913af3e7639aeac177a2..298080f403064eff43be41fcfc103b692dbf98d8 100644 (file)
@@ -99,17 +99,18 @@ public class TaxonNodeDetailElement extends AbstractCdmDetailElement<ITaxonTreeN
                selection_reuseExistingTaxon = formFactory
                                .createSelectionElement(Taxon.class,
                                                getConversationHolder(), formElement,
-                                               "Reuse existing Taxon", null,
-                                               EntitySelectionElement.NOTHING, style);
+                                               "Reuse existing taxon", null,
+                                               EntitySelectionElement.DELETABLE, style);
 
                selection_reuseExistingName = formFactory
                                .createSelectionElement(TaxonNameBase.class,
                                                getConversationHolder(), formElement,
                                                "Reuse existing name", null,
-                                               EntitySelectionElement.ALL, style);
+                                               EntitySelectionElement.DELETABLE, style);
 
                text_newTaxonName = formFactory.createTextWithLabelElement(formElement,
                                "New Taxon", "", style);
+               text_newTaxonName.setFocus();
 
                checkbox_openInEditor = formFactory.createCheckbox(formElement,
                                "Open in Editor", true, style);