// public Project createProject(ResourcePool resourcePool, boolean local, String name) {
// return createProject(resourcePool,local,name,!local,true);
// }
// public Project createProject(ResourcePool resourcePool, boolean local, String name, boolean addResources,boolean verify) {
private Project createProjectAsync(CreateOptions opt) {
DataFactoryUndoController undoController=new DataFactoryUndoController();
ResourcePool resourcePool=opt.getResourcePool();
if (resourcePool == null){
resourcePool = ResourcePoolFactory.getInstance().createResourcePool(opt.getName(),undoController);
resourcePool.setLocal(opt.isLocal());
}
Project project = Project.createProject(resourcePool,undoController);
undoController.setDataFactory(project);
project.setName(opt.getName());
if (opt.isLocal()) project.setMaster(true);
//Don't forget to modify Serializer.deserialize too
if (opt.isAddResources() &&!project.isLocal()){