Revert: IDEA-181529 return last selected editor before others

IDEA-CR-30306
This commit is contained in:
Yann Cébron
2018-03-08 12:28:55 +01:00
parent 877b2424ce
commit b84d39eef3
@@ -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]);
}