int tabsCounter = 0;
Iterator<FileTableTab> tabsIterator = tabs.iterator();
// Save tabs locations
while (tabsIterator.hasNext()) {
FileTableTab tab = tabsIterator.next();
configuration.setVariable(getTabLocationVariable(index, isLeft, tabsCounter), tab.getLocation().toString());
configuration.setVariable(getTabLockedVariable(index, isLeft, tabsCounter), tab.isLocked());
configuration.setVariable(getTabTitleVariable(index, isLeft, tabsCounter), tab.getTitle());
++tabsCounter;
}
if (tabsCounter > 0) {
// Save tabs count