protected ProjectFactory configureProjectFactory(ProjectFactory factory) { factory.setProjectName(getProjectInfo().getProjectName()); if (projectInfo instanceof IExtendedProjectInfo) { IExtendedProjectInfo extendedProjectInfo = (IExtendedProjectInfo) projectInfo; factory.setLocation(extendedProjectInfo.getLocationPath()); } factory.addFolders(getAllFolders()); factory.addReferencedProjects(getReferencedProjects()); factory.addProjectNatures(getProjectNatures()); factory.addBuilderIds(getBuilders()); return factory; }
protected IProject createProject(IProgressMonitor monitor) { ProjectFactory factory = createProjectFactory(); configureProjectBuilder(factory); return factory.createProject(monitor, null); }