Examples of ILaunchManager


Examples of org.eclipse.debug.core.ILaunchManager

*/
public class JavascriptLaunchConfigurationHelper {

  public ILaunchConfiguration getLaunchConfiguration(String projectName) {
    try {
      ILaunchManager launchManager = DebugPlugin.getDefault().getLaunchManager();
      ILaunchConfigurationType type =
          launchManager.getLaunchConfigurationType(JSTD_LAUNCH_CONFIGURATION_TYPE);
      ILaunchConfiguration[] launchConfigurations = launchManager.getLaunchConfigurations(type);
      for (ILaunchConfiguration launchConfiguration : launchConfigurations) {
        String configProjectName =
            launchConfiguration.getAttribute(LaunchConfigurationConstants.PROJECT_NAME, "");
        if (configProjectName.equals(projectName) && isValidToRun(projectName, launchConfiguration)) {
          return launchConfiguration;
View Full Code Here

Examples of org.eclipse.debug.core.ILaunchManager

  }

  public boolean isExistingLaunchConfigWithRunOnSaveOtherThanCurrent(String projectName,
      String launchConfigName) {
    try {
      ILaunchManager launchManager = DebugPlugin.getDefault().getLaunchManager();
      ILaunchConfigurationType type =
          launchManager.getLaunchConfigurationType(JSTD_LAUNCH_CONFIGURATION_TYPE);
      ILaunchConfiguration[] launchConfigurations = launchManager.getLaunchConfigurations(type);
      for (ILaunchConfiguration launchConfiguration : launchConfigurations) {
        String configProjectName =
            launchConfiguration.getAttribute(LaunchConfigurationConstants.PROJECT_NAME, "");
        boolean runOnEveryBuild =
            launchConfiguration.getAttribute(LaunchConfigurationConstants.RUN_ON_EVERY_SAVE, false);
View Full Code Here

Examples of org.eclipse.debug.core.ILaunchManager

  ////////////////////////////////////////////////////////////////////////////
  /**
   * Executes configured script and returns created {@link ILaunch}.
   */
  public ILaunch execute(IProgressMonitor monitor) throws CoreException {
    ILaunchManager launchManager = DebugPlugin.getDefault().getLaunchManager();
    ILaunchConfigurationType type =
        launchManager.getLaunchConfigurationType("org.eclipse.ant.AntLaunchConfigurationType"/*IAntLaunchConfigurationConstants.ID_ANT_LAUNCH_CONFIGURATION_TYPE*/);
    String name = launchManager.generateUniqueLaunchConfigurationNameFrom(m_antFile.getName());
    ILaunchConfigurationWorkingCopy workingCopy = type.newInstance(null, name);
    // initialize with default values
    {
      workingCopy.setAttribute(
          IJavaLaunchConfigurationConstants.ATTR_SOURCE_PATH_PROVIDER,
View Full Code Here

Examples of org.eclipse.debug.core.ILaunchManager

   */
  public static String[] getGWTProjectClasspath(IProject project) throws CoreException {
    // create new launch configuration just as container for parameters, we are not going to save it
    ILaunchConfigurationWorkingCopy launchConfiguration;
    {
      ILaunchManager launchManager = DebugPlugin.getDefault().getLaunchManager();
      ILaunchConfigurationType launchConfigurationType =
          launchManager.getLaunchConfigurationType(Constants.LAUNCH_TYPE_ID_SHELL);
      launchConfiguration = launchConfigurationType.newInstance(null, "__GWTDesigner_tmp");
    }
    // set project name
    launchConfiguration.setAttribute(
        IJavaLaunchConfigurationConstants.ATTR_PROJECT_NAME,
View Full Code Here

Examples of org.eclipse.debug.core.ILaunchManager

    /**
     * Starts the model (called by the {@link JUnitCorePlugin} on startup).
     */
    public void start()
    {
        ILaunchManager launchManager = DebugPlugin.getDefault().getLaunchManager();
        launchManager.addLaunchListener(fLaunchListener);


        addTestRunSessionListener(new LegacyTestRunSessionListener());
    }
View Full Code Here

Examples of org.eclipse.debug.core.ILaunchManager

    /**
     * Stops the model (called by the {@link JUnitCorePlugin} on shutdown).
     */
    public void stop()
    {
        ILaunchManager launchManager = DebugPlugin.getDefault().getLaunchManager();
        launchManager.removeLaunchListener(fLaunchListener);

        File historyDirectory = JUnitCorePlugin.getHistoryDirectory();
        File[] swapFiles = historyDirectory.listFiles();
        if (swapFiles != null)
        {
View Full Code Here

Examples of org.eclipse.debug.core.ILaunchManager

    {
        testRunSession.stopTestRun();
        ILaunch launch = testRunSession.getLaunch();
        if (launch != null)
        {
            ILaunchManager launchManager = DebugPlugin.getDefault().getLaunchManager();
            launchManager.removeLaunch(launch);
        }

        Object[] listeners = fTestRunSessionListeners.getListeners();
        for (int i = 0; i < listeners.length; ++i)
        {
View Full Code Here

Examples of org.eclipse.debug.core.ILaunchManager

      IPath descriptorPath = RutaProjectUtils.getEngineDescriptorPath(scriptFile.getLocation(),
              project);
      String descriptorAbsolutePath = descriptorPath.toFile().getAbsolutePath();

      try {
        ILaunchManager mgr = DebugPlugin.getDefault().getLaunchManager();
        ILaunchConfigurationType type = mgr
                .getLaunchConfigurationType(RutaLaunchConfigurationConstants.ID_RUTA_SCRIPT);

        ILaunchConfigurationWorkingCopy copy = type.newInstance(null, scriptFile.getName()
                + ".Testing");
        // do not use RutaLaunchConstants.ARG_INPUT_FOLDER here
View Full Code Here

Examples of org.eclipse.debug.core.ILaunchManager

    private void finishLaunchWithError(ILaunch launch) {
        try {
            launch.terminate();

            ILaunchManager launchManager = DebugPlugin.getDefault().getLaunchManager();
            launchManager.removeLaunch(launch);
        } catch (Throwable x) {
            GrinderStonePlugin.log(x);
        }
    }
View Full Code Here

Examples of org.eclipse.debug.core.ILaunchManager

    }
  }

  @SuppressWarnings("unchecked")
  protected ILaunchConfigurationWorkingCopy createLaunch() throws Exception {
    ILaunchManager launchManager = DebugPlugin.getDefault().getLaunchManager();
    ILaunchConfigurationType launchConfigType = launchManager.getLaunchConfigurationType("org.eclipse.jdt.launching.localJavaApplication");
    ILaunchConfigurationWorkingCopy wc = launchConfigType.newInstance(null, "Test1");

    wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_PROJECT_NAME, "JMX_EXAMPLE");
    wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_MAIN_TYPE_NAME, "com.example.Main");
    wc.setAttribute("org.eclipse.debug.core.MAPPED_RESOURCE_PATHS",
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.