mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Revert: IDEA-181529 return last selected editor before others
IDEA-CR-30306
This commit is contained in:
+2
-3
@@ -1249,12 +1249,11 @@ public class FileEditorManagerImpl extends FileEditorManagerEx implements Persis
|
||||
@Override
|
||||
@NotNull
|
||||
public FileEditor[] getSelectedEditors() {
|
||||
Set<FileEditor> selectedEditors = new LinkedHashSet<>();
|
||||
EditorComposite selected = getLastSelected();
|
||||
if (selected != null) selectedEditors.add(selected.getSelectedEditor());
|
||||
Set<FileEditor> selectedEditors = new HashSet<>();
|
||||
for (EditorsSplitters each : getAllSplitters()) {
|
||||
ContainerUtil.addAll(selectedEditors, each.getSelectedEditors());
|
||||
}
|
||||
|
||||
return selectedEditors.toArray(new FileEditor[0]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user