String outFolder = pageOne.getOutputFolder();
String mainFilePath = pageOne.getMainFileName();
String mainFileFolder = mainFilePath.substring(
0,
mainFilePath.lastIndexOf("."));
HaxeProject project = HaxeProjectCreator.createProject(name, location);
// creating build file
BuildFile buildFile = pageOne.getBuildFile();
project.addBuildFile(buildFile);
project.createFile(buildFile.getPath().toString(), buildFile.getContent(), false);
// here the initial structure for project should be
String[] struct = {srcFolder, outFolder, mainFileFolder};
project.createFolders(struct);
// create main file and add it to the project
project.createFile(pageOne.getMainFileName() + CodeFile.EXTENTION_WITH_DOT);
//TODO: find haxe compiler and attach it or inform user about not found
}
catch (NullPointerException e)
{