Examples of ILaunch


Examples of org.eclipse.debug.core.ILaunch

    String configName = "TestEnabled";
    ILaunchConfiguration config = launch(configName,
        pkg.getJavaProject().getElementName(),
        unit.getTypes()[0].getFullyQualifiedName(), ILaunchManager.RUN_MODE);

    ILaunch launch = null;
    final Lock lock = new ReentrantLock();
    final Condition condition = lock.newCondition();
    lock.lock();
    try {
      // Wait for listener to be notified:
      while (listener.getLaunch(configName) == null) {
        condition.await(100, TimeUnit.MILLISECONDS);
      }
      launch = listener.getLaunch(configName);
      // Wait for launch to terminate:
      while (!launch.isTerminated()) {
        condition.await(100, TimeUnit.MILLISECONDS);
      }
      // Give the tracker a bit more time to finish:
      condition.await(100, TimeUnit.MILLISECONDS);
    } finally {
View Full Code Here

Examples of org.eclipse.debug.core.ILaunch

  protected LaunchEvent createEvent() {
    ILaunchConfigurationType type = mock(ILaunchConfigurationType.class);
    given(type.getIdentifier()).willReturn("typeId");
    ILaunchConfiguration config = mock(ILaunchConfiguration.class);
    given(config.getName()).willReturn("name");
    ILaunch launch = mock(ILaunch.class);
    given(launch.getLaunchMode()).willReturn("run");
    return new LaunchEvent(new Interval(0, 1), launch, config, type,
        new HashSet<IPath>(Arrays.asList(new Path("/1"), new Path("/2"))));
  }
View Full Code Here

Examples of org.eclipse.debug.core.ILaunch

    @Override
    public void handleDebugEvents(DebugEvent[] events) {
      for (DebugEvent e : events) {
        if (e.getSource() instanceof IProcess) {
          IProcess process = (IProcess) e.getSource();
          ILaunch launch = process.getLaunch();
          String configName = launch.getLaunchConfiguration().getName();
          launches.put(configName, launch);

          if (e.getKind() == DebugEvent.CREATE) {
            creationTimes.put(configName, System.currentTimeMillis());
View Full Code Here

Examples of org.eclipse.debug.core.ILaunch

        // Starting the console printer thread
        LdapServersUtils.startConsolePrinterThread( server );

        // Launching ApacheDS
        ILaunch launch = launchApacheDS( server );

        // Starting the "terminate" listener thread
        LdapServersUtils.startTerminateListenerThread( server, launch );

        // Running the startup listener watchdog
View Full Code Here

Examples of org.eclipse.debug.core.ILaunch

        // Saving the launch configuration
        ILaunchConfiguration configuration = workingCopy.doSave();

        // Launching the launch configuration
        ILaunch launch = configuration.launch( ILaunchManager.RUN_MODE, new NullProgressMonitor() );

        // Storing the launch configuration as a custom object in the LDAP Server for later use
        server.putCustomObject( LdapServersUtils.LAUNCH_CONFIGURATION_CUSTOM_OBJECT, launch );

        return launch;
View Full Code Here

Examples of org.eclipse.debug.core.ILaunch

      wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_PROGRAM_ARGUMENTS,
        args);
      // saves the new config
      config = wc.doSave();
    }
    ILaunch launch=config.launch(ILaunchManager.RUN_MODE, null);
    config.delete();
    return launch;
  }
View Full Code Here

Examples of org.eclipse.debug.core.ILaunch

    }else{
      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.ILaunch

    String procName="["+currentProject.getName()+"] - "+CommonNames.IJ+" "+args;
    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

Examples of org.eclipse.debug.core.ILaunch

    }

    private void notifyTestRunSessionRemoved(TestRunSession testRunSession)
    {
        testRunSession.stopTestRun();
        ILaunch launch = testRunSession.getLaunch();
        if (launch != null)
        {
            ILaunchManager launchManager = DebugPlugin.getDefault().getLaunchManager();
            launchManager.removeLaunch(launch);
        }
View Full Code Here

Examples of org.eclipse.debug.core.ILaunch

        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 {
            Thread.sleep(100);
          } catch (InterruptedException e) {
            RutaAddonsPlugin.error(e);
          }
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.