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)