Package org.eclipse.debug.core

Examples of org.eclipse.debug.core.ILaunchConfigurationType



  public static ILaunchConfiguration findLaunch(String moduleName, String projectName) throws CoreException {
   
    ILaunchManager launchManager = DebugPlugin.getDefault().getLaunchManager();
    ILaunchConfigurationType configType = launchManager.getLaunchConfigurationType(Constants.LAUNCH_CONFIG_TYPE);
    ILaunchConfiguration[] launchConfigurations = launchManager.getLaunchConfigurations(configType);
    ILaunchConfiguration toLaunch = null;

    for (int i = 0; i < launchConfigurations.length; i++) {
      ILaunchConfiguration configuration = launchConfigurations[i];
View Full Code Here


  }

  private static ILaunchConfiguration createLaunch(String moduleName, String projectName) throws CoreException {

    ILaunchManager launchManager = DebugPlugin.getDefault().getLaunchManager();
    ILaunchConfigurationType configType = launchManager.getLaunchConfigurationType(Constants.LAUNCH_CONFIG_TYPE);
    ILaunchConfigurationWorkingCopy copy = configType.newInstance(null, launchManager.generateUniqueLaunchConfigurationNameFrom(moduleName));
    copy.setAttribute(Constants.LAUNCH_ATTR_MODULE_NAME, moduleName);
    copy.setAttribute(IJavaLaunchConfigurationConstants.ATTR_PROJECT_NAME, projectName);
    copy.setAttribute(Constants.LAUNCH_ATTR_PROJECT_NAME, projectName);

    return copy.doSave();
View Full Code Here

  }

  public static ILaunchConfiguration findLaunch(String moduleName, String projectName) throws CoreException {

    ILaunchManager launchManager = DebugPlugin.getDefault().getLaunchManager();
    ILaunchConfigurationType configType = launchManager.getLaunchConfigurationType(Constants.LAUNCH_CONFIG_TYPE);
    ILaunchConfiguration[] launchConfigurations = launchManager.getLaunchConfigurations(configType);
    ILaunchConfiguration toLaunch = null;

    for (int i = 0; i < launchConfigurations.length; i++) {
      ILaunchConfiguration configuration = launchConfigurations[i];
View Full Code Here

              }
              final String project = (String) attributes
                  .get(ORG_ECLIPSE_JDT_LAUNCHING_PROJECT_ATTR);

              try {
                ILaunchConfigurationType type = launchConfiguration
                    .getType();
                String identifier = type.getIdentifier();
                if (identifier
                    .equals(COM_GOOGLE_GDT_ECLIPSE_SUITE_WEBAPP)) {
                  p.getDocument().addDocumentListener(
                      new IDocumentListener() {
View Full Code Here

  private ILaunchConfiguration createConfiguration(IResource resource){
    ILaunchConfiguration config = null;
    ILaunchConfigurationWorkingCopy wc = null;
   
    try {
      ILaunchConfigurationType configType = getConfigurationType();
      wc = configType.newInstance(null, DebugPlugin.getDefault().getLaunchManager().generateLaunchConfigurationName(resource.getProject().getName() + " Configuration"));
      //wc.setAttribute(IXVRConstants.ATTR_XVR_COMPILER, "C:\\VRMedia\\s3dc.exe");
      wc.setAttribute(IXVRConstants.ATTR_XVR_VM, "C:\\VRMedia\\XVRGlut.exe");
      //wc.setAttribute(IXVRConstants.ATTR_XVR_HEADERS, "C:\\VRMedia\\Include\n");
      wc.setAttribute(IXVRConstants.ATTR_XVR_BROWSER, "C:\\Program Files (x86)\\Internet Explorer\\iexplore.exe");
      XVRMainTab.fillConfigurationFromPath(wc, resource.getFullPath().toString());
View Full Code Here

   * @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());
//    } catch (CoreException e) {
//      e.printStackTrace();
//      return null;
//    }
View Full Code Here

   * @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;
    try {
      delegates = type.getDelegates(modes);
    } catch (CoreException e) {
      e.printStackTrace();
    }

    Assert.assertTrue(delegates.length > 0);
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);
    */
    ILaunchDelegate[] delegates = null;
    try {
      delegates = type.getDelegates(modes);
      for (ILaunchDelegate delegate : delegates)
        if(delegate.getDelegate().getClass().equals(ApplicationLaunchConfigurationDelegate.class))
          return (ApplicationLaunchConfigurationDelegate) delegate.getDelegate();
     
    } catch (CoreException e) {
View Full Code Here

   */
  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[]{};
    }
View Full Code Here

   */
  public static void activate()
  {
    ILaunchManager manager = DebugPlugin.getDefault().getLaunchManager();
   
    final ILaunchConfigurationType configType =
      manager.getLaunchConfigurationType(IProfilerConstants.ID_LAUNCH_CONFIGURATION_TYPE);
    if (configType == null)
    {
      return;
    }
View Full Code Here

TOP

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

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.