Package org.eclipse.core.runtime

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


          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();
        } else {
          monitor.worked(1);
        }
      } else {
        monitor.worked(1);
View Full Code Here


      subProgressMonitor.worked(thisTask.amountOfWork());
      if (subProgressMonitor.isCanceled()) {
        throw new OperationCanceledException();
      }
    }
    subProgressMonitor.done();
  }

  protected AbstractBaseActivator _getLogger() {
    return BuilderPlugin.getDefault();
  }
View Full Code Here

                        VirtualMachine vm= runnable.getVirtualMachine();
                        if (vm != null) {
                            DroolsDebugModel.newDebugTarget(launch, vm, renderDebugTarget(config.getClassToLaunch(), port), process, true, false, config.isResumeOnStartup());
                            subMonitor.worked(1);
                            subMonitor.done();
                        }
                        return;
                    } catch (InterruptedIOException e) {
                        checkErrorMessage(process);
View Full Code Here

            }
          }
        }
      } finally {
        if (subMonitor != null)
          subMonitor.done();
        manager.batchContainerInitializationsProgress.initializeAfterLoadMonitor.set(null);
      }

      // avoid leaking source attachment properties (see https://bugs.eclipse.org/bugs/show_bug.cgi?id=183413 )
      // and recreate links for external folders if needed
View Full Code Here

      ae.destroy();
    }
    IFolder folder = outputFolder;
    folder.refreshLocal(IResource.DEPTH_INFINITE, new NullProgressMonitor());
    clearConsoleLink(handler);
    mon.done();
  }

  private static String getText(File each) {
    try {
      return org.apache.uima.pear.util.FileUtil.loadTextFile(each, "UTF-8");
View Full Code Here

            }
          }
        }
      } finally {
        if (subMonitor != null)
          subMonitor.done();
        manager.batchContainerInitializationsProgress.initializeAfterLoadMonitor.set(null);
      }

      // avoid leaking source attachment properties (see https://bugs.eclipse.org/bugs/show_bug.cgi?id=183413 )
      // and recreate links for external folders if needed
View Full Code Here

            closeMonitor.subTask(MessageFormat.format(
                CoreText.BranchOperation_closingMissingProject,
                project.getName()));
            project.close(closeMonitor);
          }
          closeMonitor.done();
        }

        CheckoutCommand co = new Git(repository).checkout();
        co.setName(target);
View Full Code Here

          monitor.worked(WORK_UNITS_PER_TRANSPORT);
        } finally {
          // Dirty trick to get things always working.
          subMonitor.beginTask("", WORK_UNITS_PER_TRANSPORT); //$NON-NLS-1$
          subMonitor.done();
          subMonitor.done();
        }
      }
    else {
      final EclipseGitProgressTransformer gitMonitor = new EclipseGitProgressTransformer(
View Full Code Here

          monitor.worked(WORK_UNITS_PER_TRANSPORT);
        } finally {
          // Dirty trick to get things always working.
          subMonitor.beginTask("", WORK_UNITS_PER_TRANSPORT); //$NON-NLS-1$
          subMonitor.done();
          subMonitor.done();
        }
      }
    else {
      final EclipseGitProgressTransformer gitMonitor = new EclipseGitProgressTransformer(
          monitor);
View Full Code Here

                  ProjectUtil.getValidOpenProjects(subRepo),
                  new SubProgressMonitor(refreshMonitor, 1));
            else
              refreshMonitor.worked(1);
          }
          refreshMonitor.done();
        } catch (GitAPIException e) {
          throw new TeamException(e.getLocalizedMessage(),
              e.getCause());
        } catch (IOException e) {
          throw new TeamException(e.getLocalizedMessage(),
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.