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:
Anton Makeev
2014-03-07 12:42:57 +01:00
parent 2b21896128
commit 1f2f49e98f
2 changed files with 1 additions and 4 deletions
@@ -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(); ) {