From 493c986dc29482ce250a3d2b4f6208d8b7337ff9 Mon Sep 17 00:00:00 2001 From: Konstantin Bulenkov Date: Thu, 14 Apr 2011 17:31:41 +0400 Subject: [PATCH] keep selection order --- .../src/com/intellij/ide/util/treeView/AbstractTreeUi.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/platform-api/src/com/intellij/ide/util/treeView/AbstractTreeUi.java b/platform/platform-api/src/com/intellij/ide/util/treeView/AbstractTreeUi.java index 3453c92d5016..7af773067a1d 100644 --- a/platform/platform-api/src/com/intellij/ide/util/treeView/AbstractTreeUi.java +++ b/platform/platform-api/src/com/intellij/ide/util/treeView/AbstractTreeUi.java @@ -3736,7 +3736,7 @@ public class AbstractTreeUi { final Set getSelectedElements() { final TreePath[] paths = myTree.getSelectionPaths(); - Set result = new HashSet(); + Set result = new LinkedHashSet(); if (paths != null) { for (TreePath eachPath : paths) { if (eachPath.getLastPathComponent() instanceof DefaultMutableTreeNode) {