Set selection to newly created field unit #5406
authorPatrick Plitzner <p.plitzner@bgbm.org>
Tue, 5 Apr 2016 08:38:57 +0000 (10:38 +0200)
committerPatrick Plitzner <p.plitzner@bgbm.org>
Tue, 5 Apr 2016 08:38:57 +0000 (10:38 +0200)
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/derivate/contextMenu/CreateFieldUnitContextMenu.java

index 0828a31346c6e620257dd1760cfadf32fed20085..4de8d342c571b7d51538425d55d0231ea18e374a 100644 (file)
@@ -78,7 +78,7 @@ public class CreateFieldUnitContextMenu extends CompoundContributionItem {
 
                                             derivateView.getConversationHolder().commit();
                                             derivateView.addFieldUnit(fieldUnit);
-                                            derivateView.refreshTree();
+                                            derivateView.refreshTree(fieldUnit);
                                         }
                                     });
                                 }
@@ -98,6 +98,7 @@ public class CreateFieldUnitContextMenu extends CompoundContributionItem {
                                         derivateView.getConversationHolder().commit();
                                         derivateView.addFieldUnit(fieldUnit);
                                         derivateView.updateRootEntities();
+                                        derivateView.refreshTree(fieldUnit);
                                     }
                                 });
                             }