newServer.setName("Server"+tree.getRowCount());
data.addServer((Group)getCurrentNode().getUserObject(), newServer);
} else if (isServerNodeSelectedPath()){ // add shared folder
Server server = (Server)getCurrentNode().getUserObject();
SharedFolder newSharedFoder = new SharedFolder();
Set<String> letters = DataController.getInstance().getFreeLettersInGroup(server.getGroup());
newSharedFoder.setLetter(letters.iterator().next());
newSharedFoder.setRelativePath("share"+tree.getRowCount());
data.addSharedFolder(server, newSharedFoder);
}
}