Package org.eclipse.core.runtime

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


        if (monitor == null) {
            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


      JavaModelManager manager = JavaModelManager.getJavaModelManager();
      SubProgressMonitor subMonitor = null;
      try {
        if (monitor != null) {
          subMonitor = new SubProgressMonitor(monitor, 50); // 50% of the time is spent in initializing containers and variables
          subMonitor.beginTask("", 100); //$NON-NLS-1$
          subMonitor.worked(5); // give feedback to the user that something is happening
          manager.batchContainerInitializationsProgress.initializeAfterLoadMonitor.set(subMonitor);
        }
        if (manager.forceBatchInitializations(true/*initAfterLoad*/)) { // if no other thread has started the batch container initializations
          manager.getClasspathContainer(Path.EMPTY, null); // force the batch initialization
View Full Code Here

        try {
            ContainerGenerator generator = new ContainerGenerator(destination);
            generator.generateContainer(new SubProgressMonitor(monitor, 10));

            IProgressMonitor subMonitor = new SubProgressMonitor(monitor, 75);
            subMonitor.beginTask(getOperationTitle(), resources.length);

            for (int i = 0; i < resources.length; i++) {
                IResource source = resources[i];
                IPath destinationPath = destination.append(source.getName());
View Full Code Here

    private static void runDebug(PythonRunnerConfig config, ILaunch launch, IProgressMonitor monitor)
            throws CoreException, IOException, JDTNotAvailableException {
        if (monitor == null)
            monitor = new NullProgressMonitor();
        IProgressMonitor subMonitor = new SubProgressMonitor(monitor, 5);
        subMonitor.beginTask("Launching python", 1);

        // Launch & connect to the debugger       
        RemoteDebugger debugger = new RemoteDebugger();
        debugger.startConnect(subMonitor, config);
        subMonitor.subTask("Constructing command_line...");
View Full Code Here

            File workingDirectory, ILaunch launch) throws CoreException {
        if (monitor == null)
            monitor = new NullProgressMonitor();
        IProgressMonitor subMonitor = new SubProgressMonitor(monitor, 5);

        subMonitor.beginTask("Launching python", 1);

        // Launch & connect to the debugger       
        subMonitor.subTask("Constructing command_line...");
        String commandLineAsString = SimpleRunner.getArgumentsAsStr(cmdLine);
        //System.out.println("running command line: "+commandLineAsString);
View Full Code Here

      JavaModelManager manager = JavaModelManager.getJavaModelManager();
      SubProgressMonitor subMonitor = null;
      try {
        if (monitor != null) {
          subMonitor = new SubProgressMonitor(monitor, 50); // 50% of the time is spent in initializing containers and variables
          subMonitor.beginTask("", 100); //$NON-NLS-1$
          subMonitor.worked(5); // give feedback to the user that something is happening
          manager.batchContainerInitializationsProgress.initializeAfterLoadMonitor.set(subMonitor);
        }
        if (manager.forceBatchInitializations(true/*initAfterLoad*/)) { // if no other thread has started the batch container initializations
          manager.getClasspathContainer(Path.EMPTY, null); // force the batch initialization
View Full Code Here

            missing.length > 0 ? 3 : 2);

        if (missing.length > 0) {
          SubProgressMonitor closeMonitor = new SubProgressMonitor(
              pm, 1);
          closeMonitor.beginTask("", missing.length); //$NON-NLS-1$
          for (IProject project : missing) {
            closeMonitor.subTask(MessageFormat.format(
                CoreText.BranchOperation_closingMissingProject,
                project.getName()));
            project.close(closeMonitor);
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 {
View Full Code Here

              new SubProgressMonitor(pm, 2)));
          updated = update.call();
          pm.worked(1);
          SubProgressMonitor refreshMonitor = new SubProgressMonitor(
              pm, 1);
          refreshMonitor.beginTask("", updated.size()); //$NON-NLS-1$
          for (String path : updated) {
            Repository subRepo = SubmoduleWalk
                .getSubmoduleRepository(repository, path);
            if (subRepo != null)
              ProjectUtil.refreshValidProjects(
View Full Code Here

            Field[] fields = dr.getFields();
            TreeItem childFields = createTreeItemChild(crRoot, "Fields", true, 0, true, childFieldsNode);

            SubProgressMonitor spm = new SubProgressMonitor(monitor, 1);
            spm.beginTask("Getting relationship definitions...", fields.length);
            for (Field element : fields) {
                if (spm != null) {
                    spm.worked(1);
                }
                spm.subTask("Getting " + element.getLabel() + " definition...");
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.