Package org.eclipse.core.resources

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


          desc.setLocation(null);
        } else {
          desc.setLocation(new Path(folder.getAbsolutePath()));
        }
        project.create(desc, null);
        project.open(null);

        // Add project to current WorkingSet
        IWorkingSetManager workingSetManager = PlatformUI.getWorkbench().getWorkingSetManager();
        IWorkingSet[] workingSets = workingSetManager.getWorkingSets();
        if (workingSets != null && workingSets.length > 0) {
View Full Code Here


            IProjectDescription.DESCRIPTION_FILE_NAME)
            .getLocation();
        if (location != null
            && location.toFile().equals(
                record.getProjectSystemFile())) {
          project.open(monitor);
          project.refreshLocal(IResource.DEPTH_INFINITE, monitor);
        }
      }
      return null;
    }
View Full Code Here

    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 {
      monitor.done();
    }
View Full Code Here

            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());

            ResourcesPlugin.getWorkspace().getRoot().refreshLocal(
View Full Code Here

    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);
    textFile.create(new ByteArrayInputStream("Hello, world"
View Full Code Here

    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

              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);

            File repoDir = myRepository.getDirectory();
View Full Code Here

        if (!project.exists()) {
          project.create(projectDescription, monitor);
          importedProjects.add(project);
        }

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

            }
            projectDescription = newProject.getDescription();
        }

        // open project
        newProject.open(monitor);

        // create project w/ natures does not configure builds like the following does
        if (Utils.isNotEmpty(natures) && newProject.isOpen()) {
            BaseNature.addNature(newProject, natures, monitor);
        } else {
View Full Code Here

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

  /**
   * verifies that repository contains exactly the given files.
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.