Package org.eclipse.core.runtime

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


                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 {

                        ConnectRunnable runnable = new ConnectRunnable(connector, map);
View Full Code Here

            dialog.open();
            monitor.beginTask("Generate content provider...", 0);

            IFile file = (IFile) obj;
            try {
                monitor.subTask("Create source folder...");
                monitor.worked(1);

                IContainer container = file.getProject();

                final IFolder srcGenFolder = container.getFolder(new Path(ContentValues.SRC_GEN_PATH));
View Full Code Here

                String ecorePath = file.getLocation().toOSString();
                String projectSrcPath = getSourceFolderPathFromClasspath(file.getProject().getFile(".classpath")
                        .getContents());
                String srcGenPath = file.getProject().getFolder(projectSrcPath).getLocation().toOSString();

                monitor.subTask("Generate content provider ...");
                monitor.worked(2);

                ACPGenLauncher.run(null, ecorePath, srcGenPath);

                file.getProject().refreshLocal(IProject.DEPTH_INFINITE, null);
View Full Code Here

            .getProgressMonitor();
        javaProject.getProject().clearHistory(progressMonitor);
        javaProject.getProject().refreshLocal(IResource.DEPTH_INFINITE,
            null);
        if (progressMonitor != null) {
          progressMonitor.subTask("Building "
              + javaProject.getProject().getName());
        }
        javaProject.getProject().build(buildKind, progressMonitor);
        IMarker[] problemMarkers = javaProject.getUnderlyingResource()
            .findMarkers(
View Full Code Here

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

        // Launch & connect to the debugger       
        RemoteDebugger debugger = new RemoteDebugger();
        debugger.startConnect(subMonitor, config);
        subMonitor.subTask("Constructing command_line...");
        String[] cmdLine = config.getCommandLine(true);

        Process p = createProcess(launch, config.envp, cmdLine, config.workingDirectory);
        HashMap<Object, Object> processAttributes = new HashMap<Object, Object>();
        processAttributes.put(IProcess.ATTR_CMDLINE, config.getCommandLineAsString());
View Full Code Here

            t.process = process;
        } finally {
            t.finishedInit = true;
        }

        subMonitor.subTask("Waiting for connection...");
        Socket socket = null;
        try {
            socket = debugger.waitForConnect(subMonitor, p, process);
            if (socket == null) {
                debugger.dispose();
View Full Code Here

            if (ex instanceof SocketTimeoutException)
                message = "Timed out after " + Float.toString(config.acceptTimeout / 1000)
                        + " seconds while waiting for python script to connect.";
            throw new CoreException(PydevDebugPlugin.makeStatus(IStatus.ERROR, message, ex));
        }
        subMonitor.subTask("Done");
        // hook up debug model, and we are off & running
        launch.setSourceLocator(new PySourceLocator());
        t.startTransmission(socket); // this starts reading/writing from sockets
        t.initialize();
        t.addConsoleInputListener();
View Full Code Here

        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);
        Map<Object, Object> processAttributes = new HashMap<Object, Object>();

        processAttributes.put(IProcess.ATTR_CMDLINE, commandLineAsString);
View Full Code Here

        //System.out.println("running command line: "+commandLineAsString);
        Map<Object, Object> processAttributes = new HashMap<Object, Object>();

        processAttributes.put(IProcess.ATTR_CMDLINE, commandLineAsString);

        subMonitor.subTask("Exec...");

        //it was dying before register, so, I made this faster to see if this fixes it
        Process p = createProcess(launch, envp, cmdLine, workingDirectory);

        IProcess process;
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.