public void changeFolder(String oldPath, String newPath)
{
Folder oldFolder = new Folder(oldPath);
for (int i = 0; i < treeManager.getTreeRoots().size(); i++)
{
AbstractFolderTreeNode node = treeManager.getTreeRoots().get(i);
if (node.getFolder().equals(oldFolder))
{
Folder newFolder = new Folder(newPath);
sharedFolderTableModel.changeFolder(oldFolder, newFolder);
treeManager.removeFolder(oldFolder);
treeManager.addFolder(newFolder, !node.includesSubfolders());
return;
}
}
}