Package org.eclipse.core.runtime

Examples of org.eclipse.core.runtime.SubProgressMonitor.beginTask()


      if (instrs[i].getMetaDataFile().toFile().exists()) {
        datapath.add(instrs[i].getMetaDataFile().toOSString());
        if (format == HTML_FORMAT) {
          ISourceLocation[] srcs = instrs[i].getClassFiles().getSourceLocations();
          IProgressMonitor srcmonitor = new SubProgressMonitor(monitor, 1);
          srcmonitor.beginTask("", srcs.length); //$NON-NLS-1$
          for (int j = 0; j < srcs.length; j++) {
            srcs[j].extract(new SubProgressMonitor(srcmonitor, 1));
            sourcepath.add(srcs[j].getPath().toOSString());
          }
          srcmonitor.done();
View Full Code Here


      final IProgressMonitor subMonitor = new SubProgressMonitor(monitor,
          1);
      try {
        final Set set = projects.keySet();
        subMonitor.beginTask(Messages.ConvertConstantsToEnumRefactoring_CompilingSource, set.size());

        for (final Iterator it = set.iterator(); it.hasNext();) {
          final IJavaProject project = (IJavaProject) it.next();
          final ASTParser parser = ASTParser.newParser(AST.JLS3);
          parser.setProject(project);
View Full Code Here

      m_delta = getDelta(project);
    }
    // respond to delta
    if (m_delta != null) {
      if (Activator.getStore().getBoolean(Constants.P_BUILDER_GENERATE_ASYNC)) {
        monitor.beginTask("Building Remote Service's...", 2);
        //
        monitor.subTask("Looking for RemoteService Files");
        findRemoteServiceFiles();
        monitor.worked(1);
        //
View Full Code Here

        monitor.subTask("Updating RemoteService's Async and Impl parts");
        updateRemoteServices();
        monitor.worked(1);
      }
      {
        monitor.beginTask("Checking *.GWT.XML modifications...", 1);
        checkModuleFileModification();
        monitor.worked(1);
      }
    }
  }
View Full Code Here

      return Status.CANCEL_STATUS;
   
    // now, for each of them, migrate and load them
    MultiStatus status = AbstractIAMLJob.multiStatus("Could not migrate all models successfully", null);
    IProgressMonitor m2 = new SubProgressMonitor(monitor, 70);
    m2.beginTask("Migrating models", models.size());
    for (IFile model : models) {
      if (monitor.isCanceled())
        return Status.CANCEL_STATUS;

      try {
View Full Code Here

    // halfway there
    monitor.worked(50);

    // now, rewrite all the IDs
    IProgressMonitor sub = new SubProgressMonitor(monitor, 50);
    sub.beginTask("Rewriting IDs", count);

    Set<String> existingIDs = new HashSet<String>();
    sub.subTask("Rewriting existing IDs");
    {
      // first the root InternetApplication
View Full Code Here

        if (monitor == null) {
            monitor = new NullProgressMonitor();
        }

        IProgressMonitor subMonitor = new SubProgressMonitor(monitor, 1);
        subMonitor.beginTask(LaunchingMessages.StandardVMDebugger_Launching_VM____1, 4);
        subMonitor.subTask(LaunchingMessages.StandardVMDebugger_Finding_free_socket____2);

        int port= SocketUtil.findFreePort();
        if (port == -1) {
            abort(LaunchingMessages.StandardVMDebugger_Could_not_find_a_free_socket_for_the_debugger_1, null, IJavaLaunchConfigurationConstants.ERR_NO_SOCKET_AVAILABLE);
View Full Code Here

            }
            IvyClasspathContainer container = (IvyClasspathContainer) containerIterator.next();

            SubProgressMonitor subMonitor = new SubProgressMonitor(monitor, 1);
            String projectName = container.getConf().getJavaProject().getProject().getName();
            subMonitor.beginTask("Resolving dependencies of " + projectName + " ("
                    + container.getDescription() + ")", 1);

            IStatus jobStatus = container.launchResolve(false, true, subMonitor);
            switch (jobStatus.getCode()) {
                case IStatus.CANCEL:
View Full Code Here

      if (instrs[i].getMetaDataFile().toFile().exists()) {
        datapath.add(instrs[i].getMetaDataFile().toOSString());
        if (format == HTML_FORMAT) {
          ISourceLocation[] srcs = instrs[i].getClassFiles().getSourceLocations();
          IProgressMonitor srcmonitor = new SubProgressMonitor(monitor, 1);
          srcmonitor.beginTask("", srcs.length); //$NON-NLS-1$
          for (int j = 0; j < srcs.length; j++) {
            srcs[j].extract(new SubProgressMonitor(srcmonitor, 1));
            sourcepath.add(srcs[j].getPath().toOSString());
          }
          srcmonitor.done();
View Full Code Here

   * @param m
   * @throws CoreException
   */
  public void executeTasks(IProgressMonitor progressMonitor) throws CoreException {
    SubProgressMonitor subProgressMonitor = new SubProgressMonitor(progressMonitor, 41);
    subProgressMonitor.beginTask("building ...", _buildWork);
    Iterator iter = _buildTasks.iterator();
    while (iter.hasNext()) {
      Buildtask thisTask = (Buildtask) iter.next();
      thisTask.doWork(subProgressMonitor);
      subProgressMonitor.worked(thisTask.amountOfWork());
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.