Package org.eclipse.core.runtime

Examples of org.eclipse.core.runtime.IProgressMonitor.subTask()


        // check for cancellation
        if (monitor.isCanceled()) {
            return;
        }

        subMonitor.subTask(LaunchingMessages.StandardVMDebugger_Constructing_command_line____3);

        String program= constructProgramString(config);

        List<String> arguments= new ArrayList<String>(12);
View Full Code Here


        if (monitor.isCanceled()) {
            return;
        }

        subMonitor.worked(1);
        subMonitor.subTask(LaunchingMessages.StandardVMDebugger_Starting_virtual_machine____4);

        ListeningConnector connector= getConnector();
        if (connector == null) {
            abort(LaunchingMessages.StandardVMDebugger_Couldn__t_find_an_appropriate_debug_connector_2, null, IJavaLaunchConfigurationConstants.ERR_CONNECTOR_NOT_AVAILABLE);
        }
View Full Code Here

                String format= LaunchingMessages.StandardVMRunner__0____1___2;
            String label = NLS.bind(format, new String[] { cmdLine[0], ts.toString() });
                IProcess process= newProcess(launch, p, label, getDefaultProcessMap());
                process.setAttribute(IProcess.ATTR_CMDLINE, renderCommandLineInternal(cmdLine));
                subMonitor.worked(1);
                subMonitor.subTask(LaunchingMessages.StandardVMDebugger_Establishing_debug_connection____5);
                boolean retry= false;
                do  {
                    try {

                        ConnectRunnable runnable = new ConnectRunnable(connector, map);
View Full Code Here

                    continue;
                }
                List<Builder> builders = project.getBuilder(null).getSubBuilders();
                List<Baseline> jarDiffs = null;
                for (Builder b : builders) {
                    mon.subTask(String.format(Messages.processingProject, b.getBsn()));

                    Baseline jarDiff = DiffHelper.createBaseline(project, b.getBsn());
                    if (jarDiff != null) {
                        if (jarDiffs == null) {
                            jarDiffs = new ArrayList<Baseline>();
View Full Code Here

        }
        List<Builder> builders = project.getBuilder(null)
            .getSubBuilders();
        List<Baseline> jarDiffs = null;
        for (Builder b : builders) {
          mon.subTask(String.format(Messages.processingProject, b.getBsn()));

          Baseline jarDiff = DiffHelper.createBaseline(project,
              b.getBsn());
          if (jarDiff != null) {
            if (jarDiffs == null) {
View Full Code Here

            for( Iterator<IService> iterator = possible.iterator(); iterator.hasNext(); ) {
                IService service = iterator.next();

                if (service == null) continue;

                monitor3.subTask("connect " + service.getID());
                try {
                    // try connecting
                    IServiceInfo info = service.getInfo(new SubProgressMonitor(monitor3, 10));

                    if (info == null) {
View Full Code Here

        return;
     
      IPath destination = partDestinationMap.get(root);
      IPath htmlDestination = getHTMLDestinationFor(destination);
      EObject resolved = partEObjectMap.get(root);
      finalMonitor.subTask("Writing " + htmlDestination.lastSegment());
     
      // construct the HTML
      StringBuffer html = new StringBuffer();
      html.append(getHTMLHeader(targetDiagram, resolved))
        .append(getBreadcrumb(resolved))
View Full Code Here

    Object monitor = options == null ? null : options.get(WSDL_PROGRESS_MONITOR);
    if (monitor != null)
    {
      progressMonitor = (IProgressMonitor)monitor;
      progressMonitor.setTaskName(WSDLPlugin.INSTANCE.getString("_UI_ResourceLoad_progress")); //$NON-NLS-1$
      progressMonitor.subTask(getURI().toString());
    }

    Object bindings = options == null ? null : options.get(USE_EXTENSION_FACTORIES);
    if (bindings != null && bindings instanceof Boolean)
      // true by default
View Full Code Here

                    session.openRepository();
                  }
                  if (!session.isWorkspaceOpen()){
                    session.openWorkspace();
                  }
                  mon.subTask("Compiling: " + file.getName());
                  result = session.compileComponent(plan.getName(), file.getLocation().toPortableString());
                  if (result != null)
                    processCompileErrors(file, result);
                } catch (NotConnectedException e) {
                  ToolPlugin.showError("Tool System Exception", e);
View Full Code Here

            }
          }, IResource.DEPTH_INFINITE);
          IProgressMonitor subMonitor = SubMonitor.convert(monitor, components.size());
          for (IFile file : components){
            String key = file.getParent().getName() + "." + file.getName().substring(0, file.getName().lastIndexOf('.'));
            subMonitor.subTask(key);
            RepositoryComponent comp = list.get(key);
            if (comp != null) {
              RepositoryPropertiesManager.addRepositoryStateProperty(file, comp.getState());
            } else {
              RepositoryPropertiesManager.addRepositoryStateProperty(file, RepositoryComponent.NOT_IN_REPOSITORY);
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.