Package org.eclipse.core.resources

Examples of org.eclipse.core.resources.IProject.create()


      record.getProjectDescription().setName(projectName);

    try {
      monitor.beginTask(
          UIText.WizardProjectsImportPage_CreateProjectsTask, 100);
      project.create(record.getProjectDescription(),
          new SubProgressMonitor(monitor, 30));
      project.open(IResource.BACKGROUND_REFRESH, new SubProgressMonitor(
          monitor, 50));
      return project;
    } finally {
View Full Code Here


                    projectName[0]);
            desc.setLocation(new Path(path[0]));

            IProject prj = ResourcesPlugin.getWorkspace().getRoot()
                .getProject(desc.getName());
            prj.create(desc, actMonitor);
            prj.open(actMonitor);
            ConnectProviderOperation cpo = new ConnectProviderOperation(
                prj, repoDir[0]);
            cpo.execute(new NullProgressMonitor());
View Full Code Here

      firstProject.delete(true, null);
    IProjectDescription desc = ResourcesPlugin.getWorkspace()
        .newProjectDescription(EMPTY_PROJECT);
    desc.setLocation(new Path(new File(myRepository.getWorkTree(),
        EMPTY_PROJECT).getPath()));
    firstProject.create(desc, null);
    firstProject.open(null);

    IFolder folder = firstProject.getFolder(FOLDER);
    folder.create(false, true, null);
    IFile textFile = folder.getFile(FILE1);
View Full Code Here

      firstProject.delete(false, null);
    IProjectDescription desc = ResourcesPlugin.getWorkspace()
        .newProjectDescription(projectName);
    File parentFile = repo.getRepository().getWorkTree();
    desc.setLocation(new Path(new File(parentFile, projectName).getPath()));
    firstProject.create(desc, null);
    firstProject.open(null);
    ConnectProviderOperation cop = new ConnectProviderOperation(
        firstProject, repo.getRepository().getDirectory());
    cop.execute(null);
    return firstProject;
View Full Code Here

            if (!defaultLocation[0])
              desc.setLocation(new Path(myGitDir));

            IProject prj = ResourcesPlugin.getWorkspace().getRoot()
                .getProject(desc.getName());
            prj.create(desc, actMonitor);
            prj.open(actMonitor);

            ResourcesPlugin.getWorkspace().getRoot().refreshLocal(
                IResource.DEPTH_ONE, actMonitor);
View Full Code Here

            .loadProjectDescription(projectDir
                .append(IProjectDescription.DESCRIPTION_FILE_NAME));
        final IProject project = root.getProject(projectDescription
            .getName());
        if (!project.exists()) {
          project.create(projectDescription, monitor);
          importedProjects.add(project);
        }

        project.open(monitor);
        final ConnectProviderOperation connectProviderOperation = new ConnectProviderOperation(
View Full Code Here

        // if project doesn't exist, create
        IProjectDescription projectDescription = workspace.newProjectDescription(projectName);
        if (!newProject.exists()) {
            projectDescription = workspace.newProjectDescription(projectName);
            newProject.create(projectDescription, monitor);
        } else {
            if (logger.isDebugEnabled()) {
                logger.debug("Existing project '" + projectName
                        + "' found in workspace - will attempt to apply Force.com");
            }
View Full Code Here

      FileUtils.delete(testFile, FileUtils.RECURSIVE | FileUtils.RETRY);

    IProjectDescription desc = ResourcesPlugin.getWorkspace()
        .newProjectDescription(projectName);
    desc.setLocation(new Path(new File(parentFile, projectName).getPath()));
    project.create(desc, null);
    project.open(null);
    return project;
  }

  /**
 
View Full Code Here

  }

  private IProject createProject(String name) throws CoreException {
    IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot();
    IProject p = root.getProject(name);
    p.create(null);
    p.open(null);

    createdProjects.add(p);
    return p;
  }
View Full Code Here

    IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot();

    IProject p = root.getProject(name);
    IProjectDescription projectDescription = ResourcesPlugin.getWorkspace().newProjectDescription(p.getName());
    projectDescription.setLocation(parentLocation.append(name));
    p.create(projectDescription, null);
    p.open(null);

    createdProjects.add(p);
    return p;
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.