void () { UISettingsState uiSettings = UISettings.getInstance().getState(); uiSettings.setEditorTabLimit(2); uiSettings.setReuseNotModifiedTabs(false); manager.openFile(getFile("/src/3.txt"), true); manager.openFile(getFile("/src/foo.xml"), true); assertOpenFiles("3.txt", "foo.xml"); uiSettings.setEditorTabLimit(1); callTrimToSize(); assertOpenFiles("foo.xml"); uiSettings.setEditorTabLimit(2); manager.closeAllFiles(); uiSettings.setReuseNotModifiedTabs(true); manager.openFile(getFile("/src/3.txt"), true); assertOpenFiles("3.txt"); manager.openFile(getFile("/src/foo.xml"), true); assertOpenFiles("foo.xml"); }