Package org.eclipse.core.runtime

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


        _buildVisitor.reinitForNextBuild(this.getProject());
        if (!fullBuild) {
          subProgressMonitor.subTask("checking directory structure ...");
          if (!_buildVisitor._checkDirs()) {
            delta = null;
            subProgressMonitor.worked(5);
          }
        } else {
          delta = null;
          long t0 = System.currentTimeMillis();
          IFolder buildFolder = getProject().getFolder("build");
View Full Code Here


          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);
          subProgressMonitor.worked(2);
          getLogger().debug("scrubbing build folder took: " + (System.currentTimeMillis() - t0) + " ms");
View Full Code Here

          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);
          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();
View Full Code Here

          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");
        IContainer infoPListContainer = getProject().getWorkspace().getRoot().getFolder(_buildVisitor.getInfoPath());
        createInfoPlist(infoPListContainer);
View Full Code Here

          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>");
          subProgressMonitor.subTask("preparing partial build");
          long t0 = System.currentTimeMillis();
          _buildVisitor.resetCount();
View Full Code Here

          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>");
          subProgressMonitor.worked(12);
        } else {
          getLogger().debug("<full build>");
          subProgressMonitor.subTask("preparing full build");
          long t0 = System.currentTimeMillis();
          t0 = System.currentTimeMillis();
View Full Code Here

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

        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);
        }

        subMonitor.worked(1);

        // check for cancellation
        if (monitor.isCanceled()) {
            return;
        }
View Full Code Here

        // check for cancellation
        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

                }
                java.util.Date date= new java.util.Date();
                Timestamp ts = new Timestamp(date.getTime());
                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 {
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.