Package org.eclipse.debug.core

Examples of org.eclipse.debug.core.ILaunchConfigurationWorkingCopy.doSave()


        // Pass the URL of the node install image to the launcher
        configuration.setAttribute(IJavaLaunchConfigurationConstants.ATTR_PROGRAM_ARGUMENTS,
                                   "http://localhost:9990/node-image/" + nodeName);

        // Save the configuration
        configuration.doSave();

        // Launch
        configuration.launch(mode, null);
    }
   
View Full Code Here


        configuration.setAttribute(IJavaLaunchConfigurationConstants.ATTR_PROJECT_NAME, file.getProject().getName());
        configuration.setAttribute(IJavaLaunchConfigurationConstants.ATTR_MAIN_TYPE_NAME, "org.apache.tuscany.sca.node.launcher.DomainManagerLauncher");
        configuration.setAttribute(IJavaLaunchConfigurationConstants.ATTR_WORKING_DIRECTORY, domainProject.getLocation().toString());

        // Save the configuration
        configuration.doSave();

        // Launch
        configuration.launch(mode, null);
    }
View Full Code Here

  @Override
  protected ILaunch getLaunchForRunMode(ILaunchConfiguration configuration, String mode) throws CoreException {
    // Remove some DLTK attributes that affect how our launch runs
    ILaunchConfigurationWorkingCopy workingCopy = configuration.getWorkingCopy();
    cleanDLTKDebugConfig(workingCopy);
    workingCopy.doSave();
    // Note: DebugPlugin.ATTR_PROCESS_FACTORY_ID is also changed by CDT when launching in DEBUG mode
   
    return new Launch(configuration, mode, null);
  }
 
View Full Code Here

                .getAbsolutePath());
     
      workingCopy.setAttribute(ATTR_VM_ARGUMENTS, "-Dproject.home=\"" + workingDirectory.toOSString() + "\""
          + " -Dforrest.home=\"" + fhome + "\"");

      ILaunchConfiguration configuration = workingCopy.doSave();
      // TODO: move Jetty Launching code to Utilities
      IProgressMonitor monitor = new NullProgressMonitor();
      ILaunch launch = DebugUITools.buildAndLaunch(configuration,
          ILaunchManager.RUN_MODE, monitor);
      Utilities.jetty = launch;
View Full Code Here

      wc.setAttribute(
          IJavaLaunchConfigurationConstants.ATTR_PROGRAM_ARGUMENTS,
          arguments);
      wc.setMappedResources(new IResource[] { type
          .getUnderlyingResource() });
      config = wc.doSave();
    } catch (CoreException exception) {
      MessageDialog.openError(EvokitDebugUIPlugin
          .getActiveWorkbenchShell(),
          "Error creating launch configuration", exception
              .getStatus().getMessage());
View Full Code Here

      wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_MAIN_TYPE_NAME,
        mainClass);
      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

        wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_STOP_IN_MAIN, false);
        String _task = this.getTask();
        wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_PROGRAM_ARGUMENTS, _task);
        wc.setAttribute(RefreshTab.ATTR_REFRESH_SCOPE, "${workspace}");
        wc.setAttribute(RefreshTab.ATTR_REFRESH_RECURSIVE, true);
        _xblockexpression = wc.doSave();
      }
      return _xblockexpression;
    } catch (Throwable _e) {
      throw Exceptions.sneakyThrow(_e);
    }
View Full Code Here

      wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_PROJECT_NAME, type.getJavaProject().getElementName());
      wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_PROJECT_NAME, type.getJavaProject().getElementName());
      wc.setMappedResources(new IResource[] { type.getJavaProject().getProject() });
      WOJavaLocalApplicationLaunchConfigurationDelegate.initConfiguration(wc);
      wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_PROGRAM_ARGUMENTS, "-MainClass " + type.getFullyQualifiedName());
      config = wc.doSave();
    } catch (CoreException exception) {
      MessageDialog.openError(getShell(), LauncherMessages.JavaLaunchShortcut_3, exception.getStatus().getMessage());
    }
    return config;
  }
View Full Code Here

  public boolean preLaunchCheck(ILaunchConfiguration configuration, String mode, IProgressMonitor monitor) throws CoreException {
    String notFound = "notFound";
    if (configuration.getAttribute(IJavaLaunchConfigurationConstants.ATTR_CLASSPATH_PROVIDER, notFound).equals(notFound)) {
      ILaunchConfigurationWorkingCopy workingCopy = configuration.getWorkingCopy();
      workingCopy.setAttribute(IJavaLaunchConfigurationConstants.ATTR_CLASSPATH_PROVIDER, WORuntimeClasspathProvider.ID);
      workingCopy.doSave();
      this.informUser("LaunchConfiguration update. The message should occur only once. Please launch your app again.");
      return false;
    }
    if (configuration.getAttribute(IJavaLaunchConfigurationConstants.ATTR_CLASSPATH_PROVIDER, notFound).equals(WORuntimeClasspathProvider.OLD_ID)) {
      ILaunchConfigurationWorkingCopy workingCopy = configuration.getWorkingCopy();
View Full Code Here

      return false;
    }
    if (configuration.getAttribute(IJavaLaunchConfigurationConstants.ATTR_CLASSPATH_PROVIDER, notFound).equals(WORuntimeClasspathProvider.OLD_ID)) {
      ILaunchConfigurationWorkingCopy workingCopy = configuration.getWorkingCopy();
      workingCopy.setAttribute(IJavaLaunchConfigurationConstants.ATTR_CLASSPATH_PROVIDER, WORuntimeClasspathProvider.ID);
      workingCopy.doSave();
      this.informUser("LaunchConfiguration update. The message should occur only once. Please launch your app again.");
      return false;
    }
    if (configuration.getAttribute(IJavaLaunchConfigurationConstants.ATTR_CLASSPATH_PROVIDER, notFound).equals(WORuntimeClasspathProvider.VERY_OLD_ID)) {
      ILaunchConfigurationWorkingCopy workingCopy = configuration.getWorkingCopy();
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.