Пример #1
0
 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;
 }
Пример #2
0
 protected IProject createProject(IProgressMonitor monitor) {
   ProjectFactory factory = createProjectFactory();
   configureProjectBuilder(factory);
   return factory.createProject(monitor, null);
 }