Package org.eclipse.debug.core

Examples of org.eclipse.debug.core.ILaunchManager


   * If such a configuration does not exist it creates a new one.
   * @return an XVR launch configuration.
   * @throws CoreException If it is not possible to get a {@link ILaunchConfiguration} for the project.
   */
  public static ILaunchConfiguration getXVRLaunchConfiguration(IProject prj) throws CoreException{
    ILaunchManager manager = DebugPlugin.getDefault().getLaunchManager();
    ILaunchConfigurationType type = manager.getLaunchConfigurationType(ApplicationLaunchConfigurationDelegate.XVR_LAUNCH_CONFIGURATION_ID);

    String name = prj.getName() + ".launch";
    IFile container = prj.getFile(name);


    if(container.exists())
      return manager.getLaunchConfiguration(container);
   
    ILaunchConfigurationWorkingCopy config;
    //try {
      config = type.newInstance(prj, name);
      config.setAttribute(XVRConstants.XVR_LAUNCH_CONFIG_PROJECT_NAME_KEY, prj.getName());
View Full Code Here


   * Sets the default perspective when a breakpoint is reached.
   * @throws CoreException If it is not able to instantiate an {@link ApplicationLaunchConfigurationDelegate}
   * @throws AssertionError If some security check fails.
   */
  public static void setDefaultPerspective() throws CoreException, AssertionError{
    ILaunchManager manager = DebugPlugin.getDefault().getLaunchManager();
    ILaunchConfigurationType type = manager.getLaunchConfigurationType(ApplicationLaunchConfigurationDelegate.XVR_LAUNCH_CONFIGURATION_ID);
    HashSet<String> modes = new HashSet<String>();

    modes.add(ILaunchManager.DEBUG_MODE);

    ILaunchDelegate[] delegates = null;
View Full Code Here

  /**
   * Returns a {@link ApplicationLaunchConfigurationDelegate} object or <code>null</code> if it can not find such an object.
   * @return a {@link ApplicationLaunchConfigurationDelegate} object or <code>null</code> if it can not find such an object.
   */
  public static ApplicationLaunchConfigurationDelegate getLaunchConfigurationDelegate() {
    ILaunchManager manager = DebugPlugin.getDefault().getLaunchManager();
    ILaunchConfigurationType type = manager.getLaunchConfigurationType(ApplicationLaunchConfigurationDelegate.XVR_LAUNCH_CONFIGURATION_ID);
    HashSet<String> modes = new HashSet<String>();

    modes.add(ILaunchManager.DEBUG_MODE);
    /*modes.add(ILaunchManager.RUN_MODE);
    */
 
View Full Code Here

   * @return profiler launch configurations.
   * @throws CoreException
   */
  public synchronized static ILaunchConfiguration[] getLaunchConfigurations() throws CoreException
  {
    ILaunchManager manager = DebugPlugin.getDefault().getLaunchManager();
   
    ILaunchConfigurationType configType =
      manager.getLaunchConfigurationType(IProfilerConstants.ID_LAUNCH_CONFIGURATION_TYPE);
    if (configType == null)
    {
      return new ILaunchConfiguration[]{};
    }
   
    return manager.getLaunchConfigurations(configType);
  }
View Full Code Here

   * Gets launch configuration type.
   * @return
   */
  public static ILaunchConfigurationType getLaunchConfigurationType()
  {
    ILaunchManager manager = DebugPlugin.getDefault().getLaunchManager();
    return 
      manager.getLaunchConfigurationType(IProfilerConstants.ID_LAUNCH_CONFIGURATION_TYPE);
  }
View Full Code Here

  /**
   * Activates profiler manager.
   */
  public static void activate()
  {
    ILaunchManager manager = DebugPlugin.getDefault().getLaunchManager();
   
    final ILaunchConfigurationType configType =
      manager.getLaunchConfigurationType(IProfilerConstants.ID_LAUNCH_CONFIGURATION_TYPE);
    if (configType == null)
    {
      return;
    }
   
    launchConfigurationListener = new ILaunchConfigurationListener()
    {

      public void launchConfigurationAdded(
          ILaunchConfiguration configuration)
      {
        notifyLaunchConfigurationsChanged();
      }

      public void launchConfigurationChanged(
          ILaunchConfiguration configuration)
      {
        notifyLaunchConfigurationsChanged();
      }

      public void launchConfigurationRemoved(
          ILaunchConfiguration configuration)
      {
        notifyLaunchConfigurationsChanged();
      }
     
    };
   
    manager.addLaunchConfigurationListener(launchConfigurationListener);
   
    launchesListener = new ILaunchesListener2(){
   
      public void launchesRemoved(ILaunch[] launches)
      {
      }
   
      public void launchesChanged(ILaunch[] launches)
      {
      }
   
     
      public void launchesAdded(ILaunch[] launches)
      {
      }
   
      public void launchesTerminated(ILaunch[] launches)
      {
        if (launches == null || launches.length == 0)
        {
          return;
        }
        ProfilerLaunchManager.launchesTerminated(launches);
      }
    };
    manager.addLaunchListener(launchesListener);
  }
View Full Code Here

  /**
   * Disposes profiler manager.
   */
  public static void dispose()
  {
    ILaunchManager manager = DebugPlugin.getDefault().getLaunchManager();
   
    if (launchConfigurationListener != null)
    {
      manager.removeLaunchConfigurationListener(launchConfigurationListener);
    }
   
    if (launchesListener != null)
    {
      manager.removeLaunchListener(launchesListener);
    }
  }
View Full Code Here

  private ILaunchConfiguration getVdmLaunchConfig(int port)
  {
    // ILaunchConfiguration config = null;
    ILaunchConfigurationWorkingCopy wc = null;

    ILaunchManager launchManager = DebugPlugin.getDefault().getLaunchManager();

    ILaunchConfigurationType configType = launchManager.getLaunchConfigurationType(VDM_LAUNCH_CONFIG_TYPE);// IVdmRtDebugConstants.ATTR_VDM_PROGRAM);
    try
    {
      wc = configType.newInstance(null, launchManager.generateUniqueLaunchConfigurationNameFrom(project.getName()));

      final String VDM_LAUNCH_CONFIG_PROJECT = "vdm_launch_config_project";
      final String VDM_LAUNCH_CONFIG_MODULE = "vdm_launch_config_module";
      final String VDM_LAUNCH_CONFIG_OPERATION = "vdm_launch_config_method";
      final String VDM_LAUNCH_CONFIG_STATIC_OPERATION = "vdm_launch_config_static_method";
View Full Code Here

    super.stop(context);
//    if (dbgpService != null) {
//      dbgpService.shutdown();
//    }

    ILaunchManager launchManager = DebugPlugin.getDefault()
        .getLaunchManager();

    IDebugTarget[] targets = launchManager.getDebugTargets();
    for (int i = 0; i < targets.length; i++) {
      //IDebugTarget target = targets[i];
//      if (target instanceof VdmDebugTarget) {
//        ((VdmDebugTarget) target).shutdown();
//      }
View Full Code Here

    this.proxy.remove(proxy);
  }

  protected IDebugTarget getRunningTarget() throws CoreException
  {
    ILaunchManager launchManager = DebugPlugin.getDefault().getLaunchManager();
    ILaunchConfigurationType configType = launchManager.getLaunchConfigurationType(DESTECS_LAUNCH_ID);
    IDebugTarget target = null;
    for (ILaunch iLaunch : launchManager.getLaunches())
    {
     
        if(iLaunch.getLaunchConfiguration().getType() == configType)
        {
          target = iLaunch.getDebugTarget();
View Full Code Here

TOP

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

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.