Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "LaunchConfigurationShowCommandLine"

 
Line 2: Line 2:
 
* org.eclipse.debug.core.ILaunchConfigurationType.supportsCommandLine()
 
* org.eclipse.debug.core.ILaunchConfigurationType.supportsCommandLine()
 
* org.eclipse.debug.core.model.ILaunchConfigurationDelegate.showCommandLine(ILaunchConfiguration, String, ILaunch, IProgressMonitor)
 
* org.eclipse.debug.core.model.ILaunchConfigurationDelegate.showCommandLine(ILaunchConfiguration, String, ILaunch, IProgressMonitor)
* org.eclipse.debug.internal.core.IConfigurationElementConstants.ALLOW_COMMANDLINE corrsponding to allowCommandLine property in launchConfigurationType.exsd
+
* org.eclipse.debug.internal.core.IConfigurationElementConstants.ALLOW_COMMANDLINE corresponding to allowCommandLine property in launchConfigurationType.exsd
  
 
==Other changes in Platform Debug==
 
==Other changes in Platform Debug==

Latest revision as of 01:39, 29 August 2018

API Changes in Platform Debug

  • org.eclipse.debug.core.ILaunchConfigurationType.supportsCommandLine()
  • org.eclipse.debug.core.model.ILaunchConfigurationDelegate.showCommandLine(ILaunchConfiguration, String, ILaunch, IProgressMonitor)
  • org.eclipse.debug.internal.core.IConfigurationElementConstants.ALLOW_COMMANDLINE corresponding to allowCommandLine property in launchConfigurationType.exsd

Other changes in Platform Debug

  • Implementation for org.eclipse.debug.core.ILaunchConfigurationType.supportsCommandLine() in org.eclipse.debug.internal.core.LaunchConfigurationType.supportsCommandLine()
  • Changes in org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationTabGroupViewer to support "Show Command Line" Button in Launch Configurations

Implementation in JDT Debug

  • plugin.xml
    • Added allowCommandLine="true"
       <extension point="org.eclipse.debug.core.launchConfigurationTypes">
     <launchConfigurationType
           allowPrototypes="true"
           allowCommandLine="true"
           delegate="org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedJavaLaunchDelegate"
           delegateDescription="%localJavaApplicationDelegate.description"
           delegateName="%eclipseJDTLauncher.name"
           id="org.eclipse.jdt.launching.localJavaApplication"
           migrationDelegate="org.eclipse.jdt.internal.launching.JavaMigrationDelegate"
           modes="run, debug"
           name="%localJavaApplication"
           sourceLocatorId="org.eclipse.jdt.launching.sourceLocator.JavaSourceLookupDirector"
           sourcePathComputerId="org.eclipse.jdt.launching.sourceLookup.javaSourcePathComputer">
     </launchConfigurationType>
  • JavaLaunchDelegate
    • org.eclipse.jdt.launching.JavaLaunchDelegate.showCommandLine(ILaunchConfiguration, String, ILaunch, IProgressMonitor)
    • Overridden to show command line. Tip is to carve out the common functionality from launch method to be reused in showCommandLine method.
  • Added API org.eclipse.jdt.launching.IVMRunner.showCommandLine(VMRunnerConfiguration, ILaunch, IProgressMonitor)
  • Implemented org.eclipse.jdt.internal.launching.StandardVMRunner.showCommandLine(VMRunnerConfiguration, ILaunch, IProgressMonitor) and org.eclipse.jdt.internal.launching.StandardVMDebugger.showCommandLine(VMRunnerConfiguration, ILaunch, IProgressMonitor)

Back to the top