Package org.eclipse.debug.core

Examples of org.eclipse.debug.core.Launch


        args.add("-Dprose.address=" + address);
        args.add("-Dinsert=" + aspect.getFullyQualifiedName());
        if (txId != null) args.add("-DtxId=" + txId);
        vmConfig.setVMArguments((String[]) args.toArray(new String[] {}));

        ILaunch launch = new Launch(null, ILaunchManager.RUN_MODE, null);
        vmRunner.run(vmConfig, launch, null);
        DebugPlugin.getDefault().getLaunchManager().addLaunch(launch);
    }
View Full Code Here


    return TestabilityConstants.TESTABILITY.equals(mode);
  }

  public ILaunch getLaunch(ILaunchConfiguration configuration, String mode) {
    if (TestabilityConstants.TESTABILITY.equals(mode)) {
      return new Launch(configuration, mode, null);
    } else {
      throw new IllegalStateException(
          "Cannot launch testability configuration when not in testability mode.");
    }
  }
View Full Code Here

  }

  @Override
  public ILaunch getLaunch(ILaunchConfiguration configuration, String mode) throws CoreException {
    if (isRunMode(mode)) {
      return new Launch(configuration, mode, null);
    } else {
      throw new CoreException(new Status(IStatus.ERROR, Activator.PLUGIN_ID,
          "Can only launch JS Test Driver configuration from Run mode"));
    }
  }
View Full Code Here

        copy.setAttribute(RutaLaunchConstants.ARG_DESCRIPTOR, descriptorAbsolutePath);
        copy.setAttribute(RutaLaunchConfigurationConstants.ATTR_PROJECT_NAME, project.getName());
        ILaunchConfiguration lc = copy.doSave();

        String mode = ILaunchManager.RUN_MODE;
        ILaunch launch = new Launch(lc, mode, null);

        ILaunchConfiguration launchConfiguration = launch.getLaunchConfiguration();

        ILaunch launched = launchConfiguration.launch(ILaunchManager.RUN_MODE, monitor);

        while (!launched.isTerminated()) {
          try {
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

        copy.setAttribute(RutaLaunchConstants.ARG_DESCRIPTOR, descriptorAbsolutePath);
        copy.setAttribute(RutaLaunchConfigurationConstants.ATTR_PROJECT_NAME, project.getName());
        ILaunchConfiguration lc = copy.doSave();

        String mode = ILaunchManager.RUN_MODE;
        ILaunch launch = new Launch(lc, mode, null);

        ILaunchConfiguration launchConfiguration = launch.getLaunchConfiguration();

        ILaunch launched = launchConfiguration.launch(ILaunchManager.RUN_MODE, monitor);

        while (!launched.isTerminated()) {
          try {
View Full Code Here

     
    VMRunnerConfiguration vmConfig = new VMRunnerConfiguration(Constants.GWT_COMPILER_CLASS, (String[]) classpath.toArray(new String[classpath.size()]));
    vmConfig.setWorkingDirectory(project.getLocation().toOSString());
    List compilerArgs = Helper.getCompilerArgs(launchConfig);
    vmConfig.setProgramArguments((String[]) compilerArgs.toArray(new String[compilerArgs.size()]));
    final ILaunch compiler = new Launch(null, ILaunchManager.RUN_MODE, null);
   
    DebugPlugin.getDefault().addDebugEventListener(new IDebugEventSetListener() {

      public void handleDebugEvents(DebugEvent[] events) {

        for(int i = 0;i<events.length;i++) {

          DebugEvent event = events[i];
         
                Object source = event.getSource();
                if (source instanceof IProcess && event.getKind() == DebugEvent.TERMINATE) {

                ILaunch launch = ((IProcess) source).getLaunch();
                if (compiler.equals(launch)) {
                  DebugPlugin.getDefault().removeDebugEventListener(this);

              // wakeup the publisher
              synchronized (GwtProject.this) {
                GwtProject.this.notify();
              }
                    }
          }
       
        }
      }
    });

    vmRunner.run(vmConfig, compiler, null);
   
         
    try {
      synchronized (this) {
        int i = 0;
        while(!compiler.isTerminated() && i < 8) {
          wait(5000);
          i++;
        }
        // TODO: we throw an exception on timeout?
      }
View Full Code Here

  // ILaunchConfigurationDelegate2 interface:

  public ILaunch getLaunch(ILaunchConfiguration configuration, String mode)
      throws CoreException {
    ILaunch launch = new Launch(configuration, CoverageTools.LAUNCH_MODE, null);
    new CoverageLaunchInfo(launch);
    return launch;
  }
View Full Code Here

  // ILaunchConfigurationDelegate2 interface:

  public ILaunch getLaunch(ILaunchConfiguration configuration, String mode)
      throws CoreException {
    ILaunch launch = new Launch(configuration, CoverageTools.LAUNCH_MODE, null);
    new CoverageLaunchInfo(launch);
    return launch;
  }
View Full Code Here

    assertEquals(reflistener, listener);
  }

  @Test
  public void testRemoveSessionsFor1() {
    ILaunch launch0 = new Launch(null, null, null);
    ILaunch launch1 = new Launch(null, null, null);
    ICoverageSession s0 = new DummySession();
    ICoverageSession s1 = new DummySession();
    manager.addSession(s0, false, launch0);
    manager.addSession(s1, true, launch1);
    listener.clear();
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.