mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Platform: do not reverse tabs order on project reopening (IDEA-121816) + new tabs should open on the right (OC-3490)
This commit is contained in:
@@ -662,7 +662,7 @@ public class EditorWindow {
|
||||
if (initialIndex == null) {
|
||||
int selectedIndex = myTabbedPane.getSelectedIndex();
|
||||
if (selectedIndex >= 0) {
|
||||
indexToInsert = UISettings.getInstance().ACTIVATE_RIGHT_EDITOR_ON_CLOSE ? selectedIndex : selectedIndex + 1;
|
||||
indexToInsert = selectedIndex + 1;
|
||||
}
|
||||
} else {
|
||||
indexToInsert = initialIndex;
|
||||
|
||||
@@ -273,9 +273,6 @@ public class EditorsSplitters extends IdePanePanel {
|
||||
LOG.assertTrue(window != null);
|
||||
|
||||
@SuppressWarnings("unchecked") final List<Element> children = ContainerUtil.newArrayList(leaf.getChildren("file"));
|
||||
if (UISettings.getInstance().ACTIVATE_RIGHT_EDITOR_ON_CLOSE) {
|
||||
Collections.reverse(children);
|
||||
}
|
||||
|
||||
// trim to EDITOR_TAB_LIMIT, ignoring CLOSE_NON_MODIFIED_FILES_FIRST policy
|
||||
for (Iterator<Element> iterator = children.iterator(); iterator.hasNext() && UISettings.getInstance().EDITOR_TAB_LIMIT < children.size(); ) {
|
||||
|
||||
Reference in New Issue
Block a user