Package org.eclipse.debug.core.model

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


    }
    IPHPDebugTarget target = getDebugTarget(element);
    // If target is null try to get target from the last debug process to
    // run
    if (target == null) {
      IProcess process = DebugUITools.getCurrentProcess();
      if (process != null) {
        if (process instanceof PHPProcess) {
          target = (IPHPDebugTarget) ((PHPProcess) process)
              .getDebugTarget();
        }
View Full Code Here


      vmargs=CommonNames.D_SYSTEM_HOME+dprop.getSystemHome();
    }
    String procName="["+proj.getName()+"] - "+CommonNames.DERBY_SERVER+" "+CommonNames.START_DERBY_SERVER+" ("+dprop.getHost()+ ", "+dprop.getPort()+")";
    ILaunch launch = DerbyUtils.launch(proj, procName ,   
    CommonNames.DERBY_SERVER_CLASS, args, vmargs, CommonNames.START_DERBY_SERVER);
    IProcess ip=launch.getProcesses()[0];
    //set a name to be seen in the Console list
    ip.setAttribute(IProcess.ATTR_PROCESS_LABEL,procName);
   
    // saves the mapping between (server) process and project
    //servers.put(launch.getProcesses()[0], proj);
    servers.put(ip, proj);
    // register a listener to listen, when this process is finished
View Full Code Here

    String procName="["+proj.getName()+"] - "+CommonNames.DERBY_SERVER+" "+CommonNames.SHUTDOWN_DERBY_SERVER+" ("+dprop.getHost()+ ", "+dprop.getPort()+")";
   
    // starts the server as a Java app
    ILaunch launch = DerbyUtils.launch(proj, procName,
    CommonNames.DERBY_SERVER_CLASS, args, vmargs,CommonNames.SHUTDOWN_DERBY_SERVER);
    IProcess ip=launch.getProcesses()[0];
   
    //set a name to be seen in the Console list
    ip.setAttribute(IProcess.ATTR_PROCESS_LABEL,procName);
   
    //update the objectState
    setRunning(proj, Boolean.FALSE);
    if(proj.isOpen()){
      Shell shell = new Shell();
View Full Code Here

      launchType=CommonNames.IJ;
      args=""
    }
   
    ILaunch launch=launch(currentProject,launchType,CommonNames.IJ_CLASS,args, vmargs, CommonNames.IJ);
    IProcess ip=launch.getProcesses()[0];
    String procName="["+currentProject.getName()+"] - "+CommonNames.IJ+" "+args;
    ip.setAttribute(IProcess.ATTR_PROCESS_LABEL,procName);
  }
View Full Code Here

    ip.setAttribute(IProcess.ATTR_PROCESS_LABEL,procName);
  }
  public static void runSysInfo(IProject currentProject) throws CoreException
    String args="";
    ILaunch launch=launch(currentProject,CommonNames.SYSINFO,CommonNames.SYSINFO_CLASS,args, null, CommonNames.SYSINFO);
    IProcess ip=launch.getProcesses()[0];
    String procName="["+currentProject.getName()+"] - "+CommonNames.SYSINFO;
    ip.setAttribute(IProcess.ATTR_PROCESS_LABEL,procName);
  }
View Full Code Here

      throws CoreException {
   
    final String cmdLineLabel = renderCommandLineLabel(cmdLine);
    final String processLabel = renderProcessLabel();
   
    IProcess process = newEclipseProcess(launch, sp, processLabel);
    process.setAttribute(IProcess.ATTR_CMDLINE, cmdLineLabel);
   
    return process;
  }
View Full Code Here

      disposeThreadHandler();
      VirtualMachine vm = getVM();
      if (vm != null) {
        vm.exit(1);
      }
      IProcess process = getProcess();
      if (process != null) {
        process.terminate();
      }
    } catch (VMDisconnectedException e) {
      // if the VM disconnects while exiting, perform
      // normal termination processing
      terminated();
    } catch (TimeoutException exception) {
      // if there is a timeout see if the associated process is terminated
      IProcess process = getProcess();
      if (process != null && process.isTerminated()) {
        terminated();
      } else {
        // All we can do is disconnect
        disconnected();
      }
View Full Code Here

        launch.setAttribute(DebugPlugin.ATTR_CAPTURE_OUTPUT, "false"); //$NON-NLS-1$
        launch.setAttribute(INTERACTIVE_LAUNCH_PORT, String.valueOf(port));

        process = new RhinoEclipseProcess(port, clientPort);

        IProcess newProcess = new JSSpawnedInterpreterProcess(launch,
                process, "JS name for UI", null);

        launch.addProcess(newProcess);

        return new JSConsoleLaunchInfo(launch, process, clientPort);
View Full Code Here

        HashMap processAttributes = new HashMap();
        processAttributes.put(IProcess.ATTR_PROCESS_TYPE, Constants.PROCESS_TYPE);
        processAttributes.put(IProcess.ATTR_PROCESS_LABEL, label);
        processAttributes.put(DebugPlugin.ATTR_CAPTURE_OUTPUT, "true");

        IProcess pro = DebugPlugin.newProcess(launch, p, label, processAttributes);

        RemoteDebuggerServer.getInstance().setLaunch(launch, p, pro);
    }
View Full Code Here

                    throw new CoreException(PydevDebugPlugin.makeStatus(IStatus.ERROR, message, ex));
                }

                int acceptTimeout = PydevPrefs.getPreferences().getInt(PydevEditorPrefs.CONNECT_TIMEOUT);
                PyDebugTargetConsole pyDebugTargetConsole = null;
                IProcess eclipseProcess = interpreter.getLaunch().getProcesses()[0];
                RemoteDebuggerConsole debugger = new RemoteDebuggerConsole();
                ListenConnector connector = new ListenConnector(acceptTimeout);
                debugger.startConnect(connector);
                pyDebugTargetConsole = new PyDebugTargetConsole(consoleCommunication, interpreter.getLaunch(),
                        eclipseProcess, debugger);
View Full Code Here

TOP

Related Classes of org.eclipse.debug.core.model.IProcess

Copyright © 2018 www.massapicom. 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.