Examples of IProcess


Examples of org.eclipse.debug.core.model.IProcess

    public void init(IPageBookViewPage page, IConsole console) {
        if (!(console instanceof ProcessConsole)) {
            return;
        }
        ProcessConsole processConsole = (ProcessConsole) console;
        IProcess process = processConsole.getProcess();
        if (process == null) {
            return;
        }
        String attribute = process.getAttribute(Constants.PYDEV_ADD_RELAUNCH_IPROCESS_ATTR);
        if (!Constants.PYDEV_ADD_RELAUNCH_IPROCESS_ATTR_TRUE.equals(attribute)) {
            //Only provide relaunch if specified
            return;
        }
        this.fConsole = processConsole;
View Full Code Here

Examples of org.eclipse.debug.core.model.IProcess

        return false;
    }

    @Override
    public String getName() throws DebugException {
        IProcess process = getDebugTarget().getProcess();
        return process.getLabel();
    }
View Full Code Here

Examples of org.eclipse.debug.core.model.IProcess

        processAttributes.put(IProcess.ATTR_CMDLINE, config.getCommandLineAsString());
        processAttributes.put(Constants.PYDEV_DEBUG_IPROCESS_ATTR, Constants.PYDEV_DEBUG_IPROCESS_ATTR_TRUE);

        //Set the debug target before registering with the debug plugin (we want it before creating the console).
        PyDebugTarget t = new PyDebugTarget(launch, null, config.resource, debugger, config.project);
        IProcess process;
        try {
            process = registerWithDebugPluginForProcessType(config.getRunningName(), launch, p, processAttributes,
                    config);
            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();
                return;
            }
        } catch (Exception ex) {
            process.terminate();
            p.destroy();
            String message = "Unexpected error setting up the debugger";
            if (ex instanceof SocketTimeoutException)
                message = "Timed out after " + Float.toString(config.acceptTimeout / 1000)
                        + " seconds while waiting for python script to connect.";
View Full Code Here

Examples of org.eclipse.debug.core.model.IProcess

        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;
        String label = cmdLine[cmdLine.length - 1];

        //in the interactive session, we'll just create the process, it won't actually be registered
        //in the debug plugin (the communication is all done through xml-rpc).
        if (config.isInteractive) {
View Full Code Here

Examples of org.eclipse.debug.core.model.IProcess

    /* (non-Javadoc)
     * @see org.eclipse.ui.texteditor.IUpdate#update()
     */
    public void update() {
        IProcess process = console.getProcess();
        setEnabled(true);
        KeySequence binding = KeyBindingHelper
                .getCommandKeyBinding("org.python.pydev.debug.ui.actions.relaunchLastAction");
        String str = binding != null ? "(" + binding.format() + " when on Pydev editor)" : "(unbinded)";
        if (process.canTerminate()) {
            this.setImageDescriptor(PydevPlugin.getImageCache().getDescriptor(UIConstants.RELAUNCH));
            this.setToolTipText("Restart the current launch. " + str);

        } else {
            this.setImageDescriptor(PydevPlugin.getImageCache().getDescriptor(UIConstants.RELAUNCH1));
View Full Code Here

Examples of org.eclipse.debug.core.model.IProcess

      if (element != null) {
        debugTarget = element.getDebugTarget();
      }
    }
    if (debugTarget == null) {
      IProcess process = DebugUITools.getCurrentProcess();
      if (process instanceof PHPProcess) {
        debugTarget = ((PHPProcess) process).getDebugTarget();
      }
    }
    return debugTarget;
View Full Code Here

Examples of org.eclipse.debug.core.model.IProcess

    final Process phpExeProcess = DebugPlugin.exec(cmdLine, workingDir,
        envVarString);
    // Attach a crash detector
    new Thread(new ProcessCrashDetector(launch, phpExeProcess)).start();

    IProcess eclipseProcessWrapper = null;
    if (phpExeProcess != null) {
      subMonitor.worked(10);
      eclipseProcessWrapper = DebugPlugin.newProcess(launch,
          phpExeProcess, phpExe.toOSString(), processAttributes);
      if (eclipseProcessWrapper == null) {
View Full Code Here

Examples of org.eclipse.debug.core.model.IProcess

        inputGobbler.start();
      }
      int exitValue = process.waitFor();
      IDebugTarget debugTarget = launch.getDebugTarget();
      if (debugTarget != null) {
        IProcess p = debugTarget.getProcess();
        if (p instanceof PHPProcess) {
          ((PHPProcess) p).setExitValue(exitValue);
        }
      }
View Full Code Here

Examples of org.eclipse.debug.core.model.IProcess

      return true;
    }

    Iterator processes = getProcesses0().iterator();
    while (processes.hasNext()) {
      IProcess process = (IProcess) processes.next();
      if (!process.isTerminated()) {
        return false;
      }
    }

    Iterator targets = getDebugTargets0().iterator();
View Full Code Here

Examples of org.locationtech.udig.catalog.IProcess

                        return title + "(" + id.getTypeQualifier() + ")";
                    } else {
                        return title;
                    }
                } else if (resolve instanceof IProcess) {
                    IProcess proc = (IProcess) element;
                    return proc.getInfo(new NullProgressMonitor()).getTitle();
                } else if (resolve instanceof ISearch) {
                    ISearch search = (ISearch) element;
                    return search.getInfo(new NullProgressMonitor()).getTitle();
                } else if (resolve instanceof IResolveFolder) {
                    IResolveFolder folder = (IResolveFolder) element;
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.