Package org.eclipse.core.resources

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


    String name = "TestProject";
    IWorkspace workspace = ResourcesPlugin.getWorkspace();
    IWorkspaceRoot root= workspace.getRoot();
    root.delete(true, false, null);
    IProject project= root.getProject(name);
    project.create(null);
    project.open(null);
   
    IProjectDescription desc = project.getDescription();
    desc.setNatureIds(new String[] {
        JavaCore.NATURE_ID});
View Full Code Here


    String name = "TestProject";
    IWorkspace workspace = ResourcesPlugin.getWorkspace();
    IWorkspaceRoot root= workspace.getRoot();
    root.delete(true, false, null);
    IProject project= root.getProject(name);
    project.create(null);
    project.open(null);
   
    IProjectDescription desc = project.getDescription();
    desc.setNatureIds(new String[] {
        JavaCore.NATURE_ID});
View Full Code Here

            return domainProject;
        }
        if (!domainProject.exists()) {
            progressMonitor.subTask("Creating SCA domain resources");
           
            domainProject.create(new SubProgressMonitor(progressMonitor, 5));
            domainProject.open(new SubProgressMonitor(progressMonitor, 5));
           
            String html = "<html>\n" +
                "<head>\n" +
                "<meta http-equiv=\"refresh\" content=\"0;url=http://localhost:9990/ui/home\">\n" +
View Full Code Here

      BufferedInputStream bis = null;
      try {
        IWorkspace ws = ResourcesPlugin.getWorkspace();
        IProject project = ws.getRoot().getProject(destinationProject);
        if (!project.exists())
          project.create(null);
        if (!project.isOpen())
          project.open(null);
        IPath location = new Path(project.getLocation()
            .toPortableString() + "/" + localFileName);
        LogService.info("retrieving resource [" + httpAddress
View Full Code Here

      BufferedInputStream bis = null;
      try {
        IWorkspace ws = ResourcesPlugin.getWorkspace();
        IProject project = ws.getRoot().getProject(destinationProject);
        if (!project.exists())
          project.create(null);
        if (!project.isOpen())
          project.open(null);
        IPath location = new Path(project.getLocation()
            .toPortableString() + "/" + localFileName);
        LogService.ok("retrieving resource " + jioLocation
View Full Code Here

      // create the project
      IProjectDescription desc= project.getWorkspace().newProjectDescription(project.getName());
      if (!page.useDefaults()) {
        desc.setLocation(locationPath);
      }
      project.create(desc, new SubProgressMonitor(monitor, 1));
      project.open(new SubProgressMonitor(monitor, 1));
     
      // seed the project
      ForrestPlugin plugin = ForrestPlugin.getDefault();
     
View Full Code Here

            ).getActivePage().getActivePart());
   
    IProject project = r.getProject("testProject");
    IFile testFile = null;
    try {
      project.create(project.getWorkspace().newProjectDescription(
          "testProject"), null);
      project.open(null);

      testFile = addFileToProject(project, new Path(fileName),
          test.getClass().getResourceAsStream(fileName), null);
View Full Code Here

      return;
    }

    try {
      // We make sure that the project is created from this point forward.
      project.create(monitor);

      final ZipInputStream zipFileStream = new ZipInputStream(interpreterZipUrl.openStream());
      ZipEntry zipEntry = zipFileStream.getNextEntry();

      // We derive a regexedProjectName so that the dots don't end up being
View Full Code Here

      // create the project
      IProjectDescription desc= project.getWorkspace().newProjectDescription(project.getName());
      if (!page.useDefaults()) {
        desc.setLocation(locationPath);
      }
      project.create(desc, new SubProgressMonitor(monitor, 1));
      project.open(new SubProgressMonitor(monitor, 1));
     
      // seed the project
      ForrestPlugin plugin = ForrestPlugin.getDefault();
     
View Full Code Here

          } else {
            description.setLocation(locationPath);
          }
         
          monitor.worked(1);
          project.create(description, monitor);
          project.open(monitor);
          monitor.worked(1);
         
          if (!project.hasNature(PHPNature.ID)) {
            ResourceUtil.addNature(project, monitor, PHPNature.ID);
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.