Examples of doSave()


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

        wc.setAttribute(IPHPDebugConstants.OPEN_IN_BROWSER, PHPDebugPlugin.getOpenInBrowserOption());
        wc.setAttribute(IDebugParametersKeys.FIRST_LINE_BREAKPOINT, false);
        wc.setAttribute(Server.BASE_URL, URL);
        wc.setAttribute("auto_generated_url", false);
       
        return wc.doSave();
    }
}
View Full Code Here

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

        if ("debug".equals(mode)) {
            final List<String> moduleNames = getProjectAndModuleNames(projects);
            wc.setAttribute(ErlRuntimeAttributes.DEBUG_INTERPRET_MODULES, moduleNames);
        }
        wc.setMappedResources(getProjectResources(projects));
        return wc.doSave();
    }

    private IResource[] getProjectResources(final Collection<IErlProject> projects) {
        final List<IResource> result = Lists.newArrayListWithCapacity(projects.size());
        for (final IErlProject project : projects) {
View Full Code Here

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

            final Collection<IErlProject> projects,
            final ILaunchConfiguration launchConfiguration) throws CoreException {
        final List<String> moduleNames = getProjectAndModuleNames(projects);
        final ILaunchConfigurationWorkingCopy wc = launchConfiguration.getWorkingCopy();
        wc.setAttribute(ErlRuntimeAttributes.DEBUG_INTERPRET_MODULES, moduleNames);
        return wc.doSave();
    }

}
View Full Code Here

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

    ILaunchConfigurationWorkingCopy copy = type.newInstance(null, configName);
    copy.setAttribute(IJavaLaunchConfigurationConstants.ATTR_PROJECT_NAME,
        projectName);
    copy.setAttribute(IJavaLaunchConfigurationConstants.ATTR_MAIN_TYPE_NAME,
        typeName);
    ILaunchConfiguration config = copy.doSave();
    config.launch(mode, null, true);
    return config;
  }
}
View Full Code Here

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

        // Indicating that we don't want any console to show up
        workingCopy.setAttribute( DebugPlugin.ATTR_CAPTURE_OUTPUT, false );

        // Saving the launch configuration
        ILaunchConfiguration configuration = workingCopy.doSave();

        // Launching the launch configuration
        ILaunch launch = configuration.launch( ILaunchManager.RUN_MODE, new NullProgressMonitor() );

        // Storing the launch configuration as a custom object in the LDAP Server for later use
View Full Code Here

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

      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

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

  private void runFromExistingLaunchConfiguration(
      ILaunchConfiguration launchConfiguration, final List<String> testCases) throws CoreException {
    final ILaunchConfigurationWorkingCopy workingCopy =
        launchConfiguration.copy("new run").getWorkingCopy();
    workingCopy.setAttribute(TESTS_TO_RUN, testCases);
    final ILaunchConfiguration configuration = workingCopy.doSave();

    Job job = new EclipseTestRunnerJob(configuration, testCases, ServiceLocator.getService(
        JstdTestRunner.class), ServiceLocator.getExtensionPoints(
        ILaunchValidator.class, ILaunchValidator.class.getName()));
    job.schedule();
View Full Code Here

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

          "org.eclipse.debug.ui.launchGroup.run", null);
      if (result == Window.OK) {
        // we do not want to save tests subset into main launch configuration forever
        newLauchConfiguration.setAttribute(
            LaunchConfigurationConstants.TESTS_TO_RUN, new ArrayList<String>());
        newLauchConfiguration.doSave();
      }
    } catch (CoreException e) {
      logger.log(Level.SEVERE, "Could not create new launch configuration.", e);
    }
  }
View Full Code Here

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

      copy.setAttribute("hadoop.jarrable", jar.toMemento());
      copy.setAttribute("hadoop.host", this.getEffectiveHostName());
      copy.setAttribute("hadoop.user", this.getUserName());
      copy.setAttribute("hadoop.serverid", this.id);
      copy.setAttribute("hadoop.path", this.getInstallPath());
      ILaunchConfiguration saved = copy.doSave();

      // NOTE(jz) became deprecated in 3.3, replaced with getDelegates
      // (plural) method,
      // as this new method is marked experimental leaving as-is for now
      ILaunchConfigurationDelegate delegate =
View Full Code Here

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

    }

    private void performLaunch(File element, String mode) throws InterruptedException, CoreException
    {
        ILaunchConfigurationWorkingCopy temparary = createLaunchConfiguration(element);
        ILaunchConfiguration config = temparary.doSave();
        //    if (config == null) {
        // no existing found: create a new one
        //      config=
        //    }
        DebugUITools.launch(config, mode);
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.