Package org.eclipse.debug.core

Examples of org.eclipse.debug.core.ILaunchConfiguration


  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];

      if (moduleName.equals(configuration.getAttribute(Constants.LAUNCH_ATTR_MODULE_NAME, "")) //$NON-NLS-1$
          && projectName.equals(configuration.getAttribute(Constants.LAUNCH_ATTR_PROJECT_NAME, ""))) {//$NON-NLS-1$
        toLaunch = configuration;
        break;
      }
    }
    return toLaunch;
View Full Code Here


    try {

      String moduleName = Util.getQualifiedName(moduleFile);
      String projectName = moduleFile.getProject().getName();

      ILaunchConfiguration toLaunch = Helper.findOrCreateLaunch(moduleName, projectName, true);

      // we need to save, if its a working copy
      if (toLaunch instanceof ILaunchConfigurationWorkingCopy)
        toLaunch = ((ILaunchConfigurationWorkingCopy) toLaunch).doSave();
View Full Code Here

    String projectName = project.getName();
    IProject project = Util.getProject(projectName);

    Util.createModuleEntry(project, moduleName);

    ILaunchConfiguration launchConfig = Helper.findOrCreateLaunch(moduleName, projectName, true);
    ILaunchConfigurationWorkingCopy workingCopy = launchConfig.getWorkingCopy();
    workingCopy.setAttribute(Constants.LAUNCH_ATTR_GWT_COMPILE, true);
    // workingCopy.setAttribute(DebugPlugin.ATTR_CAPTURE_OUTPUT, true);
    ILaunch compiler = workingCopy.launch(ILaunchManager.RUN_MODE, null, false, true);
    // launch(launchConfig);
View Full Code Here

    ILaunchManager mgr = getLaunchManager();

    ILaunchConfigurationType type = mgr
        .getLaunchConfigurationType(WEB_APP_TYPE);

    ILaunchConfiguration configs[] = mgr.getLaunchConfigurations(type);
    for (ILaunchConfiguration config : configs) {
      if (config.getName().equalsIgnoreCase(configName)) {
        _current = config.launch(ILaunchManager.DEBUG_MODE,
            new NullProgressMonitor());
        return;
View Full Code Here

  public static final String []logLevels= {"ERROR", "WARN", "INFO", "TRACE", "DEBUG", "SPAM"}; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ //$NON-NLS-5$ //$NON-NLS-6$
  public static final String []styles= {"PRETTY", "DETAILED", "OBFUSCATED"}//$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
 
  public static ILaunchConfiguration findOrCreateLaunch(String moduleName, String projectName, boolean shouldSave) throws CoreException {
   
    ILaunchConfiguration toLaunch = findLaunch(moduleName, projectName);

    if(toLaunch == null) {
      toLaunch = createLaunch(moduleName, projectName);
    }
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];

      if(moduleName.equals(configuration.getAttribute(Constants.LAUNCH_ATTR_MODULE_NAME, "")) //$NON-NLS-1$
          && projectName.equals(configuration.getAttribute(Constants.LAUNCH_ATTR_PROJECT_NAME, ""))){//$NON-NLS-1$
        toLaunch = configuration;
        break;
      }
    }
    return toLaunch;
View Full Code Here

  public static final String[] logLevels = { "ERROR", "WARN", "INFO", "TRACE", "DEBUG", "SPAM" }; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ //$NON-NLS-5$ //$NON-NLS-6$
  public static final String[] styles = { "PRETTY", "DETAILED", "OBFUSCATED" }; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$

  public static ILaunchConfiguration findOrCreateLaunch(String moduleName, String projectName, boolean shouldSave) throws CoreException {

    ILaunchConfiguration toLaunch = findLaunch(moduleName, projectName);

    if (toLaunch == null) {
      toLaunch = createLaunch(moduleName, projectName);
    }
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];

      if (moduleName.equals(configuration.getAttribute(Constants.LAUNCH_ATTR_MODULE_NAME, "")) //$NON-NLS-1$
          && projectName.equals(configuration.getAttribute(Constants.LAUNCH_ATTR_PROJECT_NAME, ""))) {//$NON-NLS-1$
        toLaunch = configuration;
        break;
      }
    }
    return toLaunch;
View Full Code Here

    String projectName = project.getName();
    IProject project = Util.getProject(projectName);

    Util.createModuleEntry(project, moduleName);

    ILaunchConfiguration launchConfig = Helper.findOrCreateLaunch(moduleName, projectName, true);
    ILaunchConfigurationWorkingCopy workingCopy = launchConfig.getWorkingCopy();
    workingCopy.setAttribute(Constants.LAUNCH_ATTR_GWT_COMPILE, true);
    // workingCopy.setAttribute(DebugPlugin.ATTR_CAPTURE_OUTPUT, true);
    ILaunch compiler = workingCopy.launch(ILaunchManager.RUN_MODE, null, false, true);
    // launch(launchConfig);
View Full Code Here

  }

  protected IStatus run(IProgressMonitor monitor) {
    int p = DebugServerLaunchManager.getPort(project);
    if (p == -1) {
      ILaunchConfiguration launchConfiguration;
      try {
        launchConfiguration = DebugServerLaunchManager
            .getLaunchConfiguration(project);
        config = launchConfiguration;

        if (launchConfiguration != null) {
          ILaunchConfigurationWorkingCopy copy = launchConfiguration
              .copy("A");
          if (!openBrowser) {
            copy.setAttribute("com.google.gwt.eclipse.core.URL", "");
          }
          ILaunch launch = copy.launch("debug", monitor);
View Full Code Here

TOP

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

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.