Package org.eclipse.core.runtime

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


                }

                IProcess process= newProcess(launch, p, renderProcessLabel(cmdLine), 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


        if (_buildVisitor == null) {
          _buildVisitor = new BuildVisitor();
        }
        _buildVisitor.reinitForNextBuild(this.getProject());
        if (!fullBuild) {
          subProgressMonitor.subTask("checking directory structure ...");
          if (!_buildVisitor._checkDirs()) {
            delta = null;
            subProgressMonitor.worked(5);
          }
        } else {
View Full Code Here

          }
        } else {
          delta = null;
          long t0 = System.currentTimeMillis();
          IFolder buildFolder = getProject().getFolder("build");
          subProgressMonitor.subTask("scrubbing build folder ...");
          buildFolder.refreshLocal(IResource.DEPTH_INFINITE, null);
          subProgressMonitor.worked(1);
          getLogger().debug("refresh build folder took: " + (System.currentTimeMillis() - t0) + " ms");
          t0 = System.currentTimeMillis();
          buildFolder.delete(true, false, null);
View Full Code Here

          buildFolder.delete(true, false, null);
          subProgressMonitor.worked(2);
          getLogger().debug("scrubbing build folder took: " + (System.currentTimeMillis() - t0) + " ms");
          t0 = System.currentTimeMillis();
          buildFolder.refreshLocal(IResource.DEPTH_INFINITE, null);
          subProgressMonitor.subTask("re-creating structure ...");
          _buildVisitor._checkDirs();
          subProgressMonitor.worked(2);
          getLogger().debug("re-creating build folder took: " + (System.currentTimeMillis() - t0) + " ms");
        }
        subProgressMonitor.subTask("creating Info.plist");
View Full Code Here

          subProgressMonitor.subTask("re-creating structure ...");
          _buildVisitor._checkDirs();
          subProgressMonitor.worked(2);
          getLogger().debug("re-creating build folder took: " + (System.currentTimeMillis() - t0) + " ms");
        }
        subProgressMonitor.subTask("creating Info.plist");
        IContainer infoPListContainer = getProject().getWorkspace().getRoot().getFolder(_buildVisitor.getInfoPath());
        createInfoPlist(infoPListContainer);
        subProgressMonitor.worked(1);
        if ((null != delta)) {
          getLogger().debug("<partial build>");
View Full Code Here

        IContainer infoPListContainer = getProject().getWorkspace().getRoot().getFolder(_buildVisitor.getInfoPath());
        createInfoPlist(infoPListContainer);
        subProgressMonitor.worked(1);
        if ((null != delta)) {
          getLogger().debug("<partial build>");
          subProgressMonitor.subTask("preparing partial build");
          long t0 = System.currentTimeMillis();
          _buildVisitor.resetCount();
          delta.accept(_buildVisitor, IResourceDelta.ALL_WITH_PHANTOMS);
          getLogger().debug("delta.accept with " + _buildVisitor.getCount() + " delta nodes took: " + (System.currentTimeMillis() - t0) + " ms");
          getLogger().debug("</partial build>");
View Full Code Here

          getLogger().debug("delta.accept with " + _buildVisitor.getCount() + " delta nodes took: " + (System.currentTimeMillis() - t0) + " ms");
          getLogger().debug("</partial build>");
          subProgressMonitor.worked(12);
        } else {
          getLogger().debug("<full build>");
          subProgressMonitor.subTask("preparing full build");
          long t0 = System.currentTimeMillis();
          t0 = System.currentTimeMillis();
          _buildVisitor.resetCount();
          getProject().accept(_buildVisitor);
          getLogger().debug("preparing with " + _buildVisitor.getCount() + " project nodes took: " + (System.currentTimeMillis() - t0) + " ms");
View Full Code Here

        }
        long t0 = System.currentTimeMillis();
        _buildVisitor.executeTasks(subProgressMonitor);
        getLogger().debug("building structure took: " + (System.currentTimeMillis() - t0) + " ms");
        t0 = System.currentTimeMillis();
        subProgressMonitor.subTask("copying classes");
        jarBuild(delta, subProgressMonitor, getProject());
        getLogger().debug("copying classes took: " + (System.currentTimeMillis() - t0) + " ms");
        subProgressMonitor.done();
      }
    } catch (Exception up) {
View Full Code Here

            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

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

        subMonitor.subTask(LaunchingMessages.StandardVMDebugger_Constructing_command_line____3);

        String program= constructProgramString(config);

        List arguments= new ArrayList(12);
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.