Package org.eclipse.debug.core

Examples of org.eclipse.debug.core.Launch


    assertEquals(reflistener, listener);
  }

  @Test
  public void testRemoveSessionsFor3() {
    ILaunch launch0 = new Launch(null, null, null);
    ILaunch launch1 = new Launch(null, null, null);
    ICoverageSession s0 = new DummySession();
    ICoverageSession s1 = new DummySession();
    ICoverageSession s2 = new DummySession();
    manager.addSession(s0, true, launch0);
    manager.addSession(s1, true, launch1);
View Full Code Here


    ILaunchConfigurationWorkingCopy workingCopy = configuration.getWorkingCopy();
    cleanDLTKDebugConfig(workingCopy);
    workingCopy.doSave();
    // Note: DebugPlugin.ATTR_PROCESS_FACTORY_ID is also changed by CDT when launching in DEBUG mode
   
    return new Launch(configuration, mode, null);
  }
View Full Code Here

        initializeConfigurationFile(configuration.getLocation());
      } catch (IOException e) {
        throw new CoreException(new Status(IStatus.ERROR, ChromiumDebugUIPlugin.PLUGIN_ID,
            "Failed to create launch configuration file", e)); //$NON-NLS-1$
      }
      commonLaunch = new Launch(configuration, ILaunchManager.DEBUG_MODE, null);
    }
View Full Code Here

                    wdir.delete();
                    wdir.mkdir();
                    wdir.deleteOnExit();
                   
                    vmConfig.setWorkingDirectory(wdir.getAbsolutePath());
                    ILaunch launch = new Launch(null, ILaunchManager.RUN_MODE,
                            null);
                    vmRunner.run(vmConfig, launch, null);
                    IProcess[] processes = launch.getProcesses();
                    assertEquals(1, processes.length);
                    int timeout = 60000;
                    final int tStep = 500;
                    while (timeout > 0) {
                        try {
View Full Code Here

            ILaunchConfiguration newConf = workingCopy.doSave();
            ILaunch l = launch;
            if (mode != null) {
                String launchMode = launch.getLaunchMode();
                if (!mode.equals(launchMode)) {
                    l = new Launch(newConf, mode, launch.getSourceLocator());
                }
            }
            RestartLaunchAction.relaunch(l, newConf);
        } catch (CoreException e) {
            throw new RuntimeException(e);
View Full Code Here

      }
    }
    ISourceLocator srcLocator = new JavaSourceLocator(
        javaProjects.toArray(new IJavaProject[javaProjects.size()]), true);

    ILaunch launch = new Launch(config, ILaunchManager.DEBUG_MODE, srcLocator);
    IProgressMonitor monitor = null;
    Map<String, String> args = new HashMap<String, String>();
    args.put(KEY_HOSTNAME, host);
    args.put(KEY_PORT, String.valueOf(port));

    SocketAttachConnector connector = new SocketAttachConnector();
    try {
      connector.connect(args, monitor, launch);
    } catch (CoreException e) {
      throw new RuntimeException(
          "Debug VM not available at " + host + ":" + port + ". " +
          "Check hostname and port number.");
    }

    this.debugTarget = launch.getDebugTarget();
  }
View Full Code Here

     
      VMRunnerConfiguration vmConfig = new VMRunnerConfiguration(
          "org.apache.cayenne.modeler.Main", classpath);
      vmConfig.setProgramArguments(new String[]{file.makeAbsolute().toString()});
     
      Launch launch = new Launch(null, ILaunchManager.RUN_MODE, null);
      IVMRunner vmRunner = JavaRuntime.getDefaultVMInstall().getVMRunner(
          ILaunchManager.RUN_MODE);
     
      vmRunner.run(vmConfig, launch, null);
    } catch(Exception ex){
View Full Code Here

  protected CoreException abort_UnsupportedMode(String mode) throws CoreException {
    return fail(LaunchMessages.LCD_errINTERNAL_UnsupportedMode, mode);
  }
 
  protected ILaunch getLaunchForRunMode(ILaunchConfiguration configuration, String mode) throws CoreException {
    return new Launch(configuration, mode, null);
  }
View Full Code Here

    }
  }
 
  @Override
  protected ILaunch getLaunchForRunMode(ILaunchConfiguration configuration, String mode) throws CoreException {
    return new Launch(configuration, mode, null);
  }
View Full Code Here

        Process process = null;
        Integer[] ports = SocketUtil.findUnusedLocalPorts(2);
        int port = ports[0];
        int clientPort = ports[1];

        final Launch launch = new Launch(createLaunchConfig(), "interactive", //$NON-NLS-1$
                null);
        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

TOP

Related Classes of org.eclipse.debug.core.Launch

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.