Package org.eclipse.core.runtime

Examples of org.eclipse.core.runtime.SubProgressMonitor


   */
  public IServer launch(IProject project, IProgressMonitor monitor) throws CoreException {
    try {
      monitor.beginTask("Launching " + project.getName(), IProgressMonitor.UNKNOWN); //$NON-NLS-1$

      IServer server = createServer(new SubProgressMonitor(monitor, 1), NEVER_OVERWRITE);

      IServerWorkingCopy wc = server.createWorkingCopy();
      IModule[] modules = ServerUtil.getModules(project);
      if (modules == null || modules.length == 0) {
        throw new CoreException(
View Full Code Here


      }
      else {
        runtime.delete();
      }
    }
    IRuntimeWorkingCopy wc = st.getRuntimeType().createRuntime(runtimeName, new SubProgressMonitor(monitor, 1));
    wc.setName(runtimeName);

    if (path != null) {
      wc.setLocation(path);
    }

    runtime = wc.save(true, new SubProgressMonitor(monitor, 1));

    return runtime;
  }
View Full Code Here

          serverConfiguration.delete(true, true, monitor);
        }
      }
    }

    IServerWorkingCopy wc = st.createServer(serverName, null, runtime, new SubProgressMonitor(monitor, 1));
    wc.setName(serverName);
    if (callback != null) {
      callback.configureServer(wc);
    }
    server = wc.save(true, new SubProgressMonitor(monitor, 1));
    return server;
  }
View Full Code Here

        ICommand javaBuild = description.newCommand();
        javaBuild.setBuilderName(JavaCore.BUILDER_ID);

        description.setBuildSpec(new ICommand[] { javaBuild, sigilBuild });

        project.setDescription(description, new SubProgressMonitor(monitor, 2));

        IJavaProject java = JavaCore.create(project);
        if (java.exists())
        {
            IClasspathEntry[] cp = java.getRawClasspath();
View Full Code Here

        SigilCore.makeSigilProject(currentProject, monitor);

        init(JavaCore.create(currentProject), output.makeRelative(), entries, false);

        configureJavaProject(new SubProgressMonitor(monitor, 3));

        configureSigilProject(currentProject, bsn, description, projectVersion, vendor,
            name, src, monitor);
    }
View Full Code Here

        try
        {
            try
            {
                boolean removeContent = currentProject.isSynchronized(IResource.DEPTH_INFINITE);
                currentProject.delete(removeContent, false, new SubProgressMonitor(
                    monitor, 2));

            }
            finally
            {
View Full Code Here

    private void createProject(IProjectDescription description,
            IProject projectHandle, IProgressMonitor monitor)
            throws CoreException, OperationCanceledException {
        try {
            monitor.beginTask("", 2000);
            projectHandle.create(description, new SubProgressMonitor(monitor,
                    1000));
            if (monitor.isCanceled()) {
                throw new OperationCanceledException();
            }
            projectHandle.open(IResource.BACKGROUND_REFRESH,
                new SubProgressMonitor(monitor, 1000));
        } finally {
            monitor.done();
        }
    }
View Full Code Here

              }
            }
          }
        }
      },
      new SubProgressMonitor(pm, 1000)
    );

    return new RefactoringStatus();
  }
View Full Code Here

                }
              }
            }
          }
      },
      new SubProgressMonitor(pm, 1000)
    );

    return new RefactoringStatus();
  }
View Full Code Here

              }
            }
          }
        }
      },
      new SubProgressMonitor(pm, 1000)
    );

    return new RefactoringStatus();
  }
View Full Code Here

TOP

Related Classes of org.eclipse.core.runtime.SubProgressMonitor

Copyright © 2018 www.massapicom. 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.