Package org.eclipse.core.resources

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


        projectLocation = null;
      }

      desc.setLocationURI(projectLocation);
      try {
        newProject.create(desc, null);
        if (!newProject.isOpen()) {
          newProject.open(null);
        }
      } catch (CoreException e) {
        e.printStackTrace();
View Full Code Here


  private IProject configNewProject(IWorkspaceRoot root, String name, String[] natureIds, IProject[] referencedProjects, IProgressMonitor monitor) throws InvocationTargetException {
    try {
      IProject project = root.getProject(name);
      if (!project.exists()) {
        project.create(null);
      }
      if (!project.isOpen()) {
        project.open(null);
      }
      IProjectDescription desc = project.getDescription();
View Full Code Here

      }

      desc.setLocationURI(projectLocation);
      try
      {
        newProject.create(desc, null);
        if (!newProject.isOpen())
        {
          newProject.open(null);
        }
      } catch (CoreException e)
View Full Code Here

    }
  }

  private IProject createProjectHandle(String projectName, IProgressMonitor monitor) throws CoreException {
    IProject projectHandle = getProjectHandle(projectName);
    projectHandle.create(monitor);
    projectHandle.open(monitor);
    return projectHandle;
  }
 
  private void importCommonSDK(IProject projectHandle, IProgressMonitor monitor) throws Exception {
View Full Code Here

        }
        if (!domainProject.exists()) {
            progressMonitor.subTask("Creating SCA domain resources");
           
            // Create SCA domain project if necessary
            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

        projectLocation = null;
      }

      desc.setLocationURI(projectLocation);
      try {
        newProject.create(desc, null);
        if (!newProject.isOpen()) {
          newProject.open(null);
        }
      } catch (CoreException e) {
        e.printStackTrace();
View Full Code Here

        }
        if (!domainProject.exists()) {
            progressMonitor.subTask("Creating SCA domain resources");
           
            // Create SCA domain project if necessary
            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

        {
          IProject p = wroot.getProject(dirs[i].getName());
          if (!p.exists())
          {
            SysOutProgressMonitor.out.println("CREATE PROJECT: " + p.getName());
            p.create(monitor);
          }
        }
      }
    }
   
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

    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

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.