Examples of subTask()


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

            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

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

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

        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

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

                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

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

                    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

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

        }
        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

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

            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

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

        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

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

    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

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

                    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
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.