final File projFile = fileChooserDialog.getSelectedFile();
Thread thread = new Thread(new Runnable() {
public void run() {
try {
projFile.createNewFile();
UIRequestSaveProject requestSaveProject = new UIRequestSaveProject(dir, null);
param.userInterface.addRequest(requestSaveProject);
saveProject(dir);
} catch (IOException e1) {
VisualGraph.windowMessage.errorMessage("Could not create file\n" + projFile.getPath(), "Error");
}