diff options
author | Sarika Sinha | 2014-05-21 14:35:25 +0000 |
---|---|---|
committer | Curtis Windatt | 2014-05-21 14:35:25 +0000 |
commit | c10f25b68cf60b1a0100f98eab3041619c3262cb (patch) | |
tree | 97be5f747ecf45a3822c6c1f76a3c045e43b2587 | |
parent | 061449ade93290d8c9191524afa1b94b8c673c28 (diff) | |
download | eclipse.platform.debug-c10f25b68cf60b1a0100f98eab3041619c3262cb.tar.gz eclipse.platform.debug-c10f25b68cf60b1a0100f98eab3041619c3262cb.tar.xz eclipse.platform.debug-c10f25b68cf60b1a0100f98eab3041619c3262cb.zip |
Bug 434245 - Failed to launch run / debug configurations are not added
to the "Run/Debug History"
Signed-off-by: Sarika Sinha <sarika.sinha@in.ibm.com>
-rw-r--r-- | org.eclipse.debug.core/core/org/eclipse/debug/internal/core/LaunchConfiguration.java | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/org.eclipse.debug.core/core/org/eclipse/debug/internal/core/LaunchConfiguration.java b/org.eclipse.debug.core/core/org/eclipse/debug/internal/core/LaunchConfiguration.java index b021f6b85..57f2dd538 100644 --- a/org.eclipse.debug.core/core/org/eclipse/debug/internal/core/LaunchConfiguration.java +++ b/org.eclipse.debug.core/core/org/eclipse/debug/internal/core/LaunchConfiguration.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2013 IBM Corporation and others. + * Copyright (c) 2000, 2014 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -830,7 +830,9 @@ public class LaunchConfiguration extends PlatformObject implements ILaunchConfig launch.setAttribute(DebugPlugin.ATTR_CAPTURE_OUTPUT, null); } launch.setAttribute(DebugPlugin.ATTR_CONSOLE_ENCODING, getLaunchManager().getEncoding(this)); - + if (register) { + getLaunchManager().addLaunch(launch); + } // perform initial pre-launch sanity checks lmonitor.subTask(DebugCoreMessages.LaunchConfiguration_8); @@ -869,9 +871,6 @@ public class LaunchConfiguration extends PlatformObject implements ILaunchConfig else { lmonitor.worked(1); /* No validation */ } - if (register) { - getLaunchManager().addLaunch(launch); - } try { //initialize the source locator |