Package org.eclipse.core.resources

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


            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


      }

      desc.setLocationURI(projectLocation);
      try {

        newProject.create(desc, new NullProgressMonitor());
        if (!newProject.isOpen()) {
          newProject.open(new NullProgressMonitor());
        }
      } catch (CoreException e) {
        ToolModelActivator.showError("Error creating base project.", e);
View Full Code Here

            }

            desc.setLocationURI(projectLocation);
            try {
             
                newProject.create(desc, new NullProgressMonitor());
                if (!newProject.isOpen()) {
                    newProject.open(new NullProgressMonitor());
                }
            } catch (CoreException e) {
              ToolPlugin.showError("Error creating base project.", e);
View Full Code Here

      IWorkspace ws = ResourcesPlugin.getWorkspace();
      // get, or create project if non existing
      IProject project = ws.getRoot().getProject(AUTOLINK_PROJECT_NAME);
      boolean newProject = false;
      if(!project.exists()) {
        project.create(null);
        newProject = true;
      }
      if(!project.isOpen()) {
        project.open(null);
        // if project is hidden files can not be opened in all cases
View Full Code Here

    IProject dbProject = ResourcesPlugin.getWorkspace().getRoot().getProject(DB_PROJECT_NAME);

    if (!dbProject.exists()) {
      try {
        IProjectDescription desc = dbProject.getWorkspace().newProjectDescription(dbProject.getName());
        dbProject.create(desc, new NullProgressMonitor());
        if (!dbProject.isOpen()) {
          dbProject.open(new NullProgressMonitor());
        }
      } catch (CoreException e) {
        log(IStatus.ERROR, "Failed to create Cluster Project", e);
View Full Code Here

      public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
        monitor.beginTask("Initializing Build path...", 6);
        try {
          String projectName = newProjectPage.getProjectName();
          IProject project = Util.getProject(projectName);
          project.create(new SubProgressMonitor(monitor, 1));
          project.open(new SubProgressMonitor(monitor, 1));
          Util.addNature(project, new SubProgressMonitor(monitor, 1));
          IJavaProject javaProject = JavaCore.create(project);
          createWarStucture(project, new SubProgressMonitor(monitor, 1));
View Full Code Here

    IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot();
    IProject project = root.getProject(projectName);

    if (!project.exists()) {
      project.create(null);
    } else {
      project.refreshLocal(IResource.DEPTH_INFINITE, null);
    }

    if (!project.isOpen()) {
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

                    project.refreshLocal(IResource.DEPTH_INFINITE,
                        subMonitor.newChild(100));

                    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...");
View Full Code Here

    args.put(ARG_INCLUDE_DIRS_PARAM_KEY, ARG_INCLUDE_DIRS_PARAM_VAL);
   
    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();
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.