Package org.eclipse.core.resources

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


    } else {
      project.refreshLocal(IResource.DEPTH_INFINITE, null);
    }

    if (!project.isOpen()) {
      project.open(null);
    }

    // Must add faceted nature before actually attempting to install any
    // facet.
    addNature(project, FacetedProjectNature.NATURE_ID);
View Full Code Here


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

                    if (baseProject == null) {
                        subMonitor.subTask("Creating Project...");
                        project.create(subMonitor.newChild(50));

                        subMonitor.subTask("Opening Project...");
                        project.open(subMonitor.newChild(50));
                    } else {
                        subMonitor.subTask("Copying Project...");
                        baseProject.copy(project.getFullPath(), true,
                            subMonitor.newChild(100));
                    }
View Full Code Here

                && !preferenceUtils.isAutoReuseExisting()) {
                FileListDiff diff;

                if (!project.isOpen()) {
                    try {
                        project.open(null);
                    } catch (CoreException e) {
                        log.debug(
                            "An error occur while opening the source file", e); //$NON-NLS-1$
                    }
                }
View Full Code Here

    command.setArguments(args);
    desc.setBuildSpec(new ICommand[]{command});
    try {
      newProject.create(desc, new NullProgressMonitor());
      if (!newProject.isOpen())
        newProject.open(new NullProgressMonitor());
     
    } catch (CoreException e){
      e.printStackTrace();
      XVRUtils.displayError("Error while creating the new project.\n" + e.getMessage());
      return;
View Full Code Here

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

      IProject project = root.getProject(name);
      if (!project.exists()) {
        project.create(null);
      }
      if (!project.isOpen()) {
        project.open(null);
      }
      IProjectDescription desc = project.getDescription();
      desc.setLocation(null);
      desc.setNatureIds(natureIds);
      desc.setReferencedProjects(referencedProjects);
View Full Code Here

      try
      {
        newProject.create(desc, null);
        if (!newProject.isOpen())
        {
          newProject.open(null);
        }
      } catch (CoreException e)
      {
        DestecsCorePlugin.log("DestecsModelManager createBaseProject", 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 {
    importProject(projectHandle, "common-sdk", monitor);
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" +
                "</head>\n" +
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.