Examples of IProcess


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

    RunningVMs.getInstance().addProcess(process);

    Map<String, String> processAttributes = new HashMap<String, String>();
    processAttributes.put(IProcess.ATTR_PROCESS_TYPE, "XVR");
    IProcess p = DebugPlugin.newProcess(launch, process, "XVR Virtual Machine", processAttributes);

    if(this.stream)
      this.c_streamer.setStream(p.getStreamsProxy().getOutputStreamMonitor());


    ProcessExitHandler ph = new ProcessExitHandler(process);
    ph.addListener(new IProcessExitListener() {
View Full Code Here

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

              .getDebugOption(HyLaunchingPlugin.DEBUG_LAUNCHING)
              .equalsIgnoreCase("true"))) { //$NON-NLS-1$
        traceLaunchCmd(cmdLine, envp, false);
      }
     
      IProcess process= newProcess(launch, p, renderProcessLabel(cmdLine), getDefaultProcessMap());
      process.setAttribute(IProcess.ATTR_CMDLINE, renderCommandLine(cmdLine));
    }
    subMonitor.worked(1);
    subMonitor.done();
  }
View Full Code Here

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

        for (int i = 0; i < events.length; i++) {
          DebugEvent event = events[i];
          Object source = event.getSource();
          // check event type
          if (event.getKind() == DebugEvent.TERMINATE && source instanceof IProcess) {
            IProcess process = (IProcess) source;
            // check process
            if (launch == process.getLaunch()) {
              // remove debug events listener
              DebugPlugin.getDefault().removeDebugEventListener(this);
              handleRefreshResult(configuration);
              return;
            }
View Full Code Here

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

                if (monitor.isCanceled()) {
                    p.destroy();
                    return;
                }

                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 {
View Full Code Here

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

            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

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

    super.prepareCommandLine(items);
  }
 
  @Override
  protected IProcess launchProcess(ILaunch launch) throws CoreException {
    IProcess process = super.launchProcess(launch);
   
    DeeDebugTarget target = new DeeDebugTarget(launch, process, sp);
    launch.addDebugTarget(target);
   
    return process;
View Full Code Here

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

      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

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

    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

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

      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

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

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