Examples of beginTask()


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

                    }
                    else
                    {
                        SubMonitor sub = SubMonitor.convert(monitor);
                       
                        sub.beginTask("Resolving package users", 200);
                       
                        Set<String> users = JavaHelper.findLocalPackageUsers(
                            sourceProject, packageName, sub.newChild(100));
                        Set<String> dependencies = JavaHelper.findLocalPackageDependencies(
                            sourceProject, packageName, sub.newChild(100));
View Full Code Here

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

            initLabels();
            Differencer differencer = new Differencer();
            monitor.beginTask("Bytecode Outline: comparing...", 30); //$NON-NLS-1$
            IProgressMonitor sub = new SubProgressMonitor(monitor, 10);
            try {
                sub.beginTask("Bytecode Outline: comparing...", 100); //$NON-NLS-1$

                return differencer.findDifferences(
                    false, sub, null, null, left, right);
            } finally {
                sub.done();
View Full Code Here

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

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

        if (monitor == null) {
            monitor = new NullProgressMonitor();
        }
       
        IProgressMonitor subMonitor = new SubProgressMonitor(monitor, 1);
        subMonitor.beginTask(LaunchingMessages.SocketAttachConnector_Connecting____1, 2);
        subMonitor.subTask(LaunchingMessages.SocketAttachConnector_Configuring_connection____1);
       
        AttachingConnector connector= getAttachingConnector();
        String portNumberString = arguments.get("port"); //$NON-NLS-1$
        if (portNumberString == null) {
View Full Code Here

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

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

                return;
              }

              final File dir = new File(directory);

              sub.beginTask("Move files from staging server to DFS", 1);
              ChannelExec exec =
                  exec(" dfs " + s_whichFS
                      + " -moveFromLocal /tmp/hadoop_scp_" + guid + " \""
                      + getPath() + "/" + dir.getName() + "\"");
              BufferedReader reader =
View Full Code Here

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

            int nameIndex = csv.getHeader("name");

            IProgressMonitor drawMonitor = new SubProgressMonitor(monitor, 90);
            Coordinate worldLocation = new Coordinate();
           
            drawMonitor.beginTask("draw "+csv.toString(), csv.getSize());           
            String [] row;
            while ((row = reader.readNext()) != null) {
                Point point = csv.getPoint(row);
                Coordinate dataLocation = point.getCoordinate();
                try {
View Full Code Here

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

          layer.getResource(FeatureSource.class, new SubProgressMonitor(monitor, 1));
        FeatureCollection<SimpleFeatureType,SimpleFeature> features = featureSource.getFeatures(query);
        FeatureIterator<SimpleFeature> featureIterator = features.features();
        try{
            SubProgressMonitor monitor2 = new SubProgressMonitor(monitor, 98);
            monitor2.beginTask("this is ignored", features.size());
            while(featureIterator.hasNext() ){
                monitor2.worked(1);
                SimpleFeature feature=featureIterator.next();
               
                // do something.
View Full Code Here

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

        try {
            List<IService> possible = factory.createService(url);
            monitor.worked(urlProcessCount);

            IProgressMonitor monitor3 = new SubProgressMonitor(monitor, 60);
            monitor3.beginTask("connect", possible.size() * 10);

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

                if (service == null) continue;
View Full Code Here

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

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