}
public void performFileNewProject() {
CreateNewDocument dialog = new CreateNewDocument(EncogWorkBench
.getInstance().getMainWindow());
dialog.getParentDirectory().setValue(
EncogWorkBench.getInstance().getEncogFolders().toString());
dialog.getProjectFilename().setValue("MyEncogProject");
if (dialog.process()) {
File parent = new File(dialog.getParentDirectory().getValue());
File project = new File(parent, dialog.getProjectFilename()
.getValue());
Directory.deleteDirectory(project); // the user was warned!
project.mkdir();
EncogWorkBench.getInstance().getMainWindow().getTree()