// check for overwrite
File projectFile = new File(selectedDir, location);
if (projectFile.exists()) {
OverwriteDialog dialog = new OverwriteDialog(projectFile, f);
dialog.show();
if (dialog.shouldOverwrite()) {
break;
}
else if (dialog.shouldSelectAnother()) {