@Override public String showCommandLine(ILaunchConfiguration configuration, String mode, ILaunch launch, IProgressMonitor monitor) throws CoreException { if (monitor == null) { monitor = new NullProgressMonitor(); } try { VMRunnerConfiguration runConfig = getVMRunnerConfiguration(configuration, mode, monitor); if (runConfig == null) { return ""; //$NON-NLS-1$ } IVMRunner runner = getVMRunner(configuration, mode); String cmdLine = runner.showCommandLine(runConfig, launch, monitor); // check for cancellation if (monitor.isCanceled()) { return ""; //$NON-NLS-1$ } return cmdLine; } finally { monitor.done(); } }
@Override public String showCommandLine(ILaunchConfiguration configuration, String mode, ILaunch launch, IProgressMonitor monitor) throws CoreException { if (monitor == null) { monitor = new NullProgressMonitor(); } try { VMRunnerConfiguration runConfig = getVMRunnerConfiguration(configuration, launch, mode, monitor); if (runConfig == null) { return ""; //$NON-NLS-1$ } IVMRunner runner = getVMRunner(configuration, mode); String cmdLine = runner.showCommandLine(runConfig, launch, monitor); // check for cancellation if (monitor.isCanceled()) { return ""; //$NON-NLS-1$ } return cmdLine; } finally { monitor.done(); } }