mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
keep selection order
This commit is contained in:
@@ -3736,7 +3736,7 @@ public class AbstractTreeUi {
|
||||
final Set<Object> getSelectedElements() {
|
||||
final TreePath[] paths = myTree.getSelectionPaths();
|
||||
|
||||
Set<Object> result = new HashSet<Object>();
|
||||
Set<Object> result = new LinkedHashSet<Object>();
|
||||
if (paths != null) {
|
||||
for (TreePath eachPath : paths) {
|
||||
if (eachPath.getLastPathComponent() instanceof DefaultMutableTreeNode) {
|
||||
|
||||
Reference in New Issue
Block a user