Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSarika Sinha2014-05-21 10:35:25 -0400
committerCurtis Windatt2014-05-21 10:35:25 -0400
commitc10f25b68cf60b1a0100f98eab3041619c3262cb (patch)
tree97be5f747ecf45a3822c6c1f76a3c045e43b2587 /org.eclipse.debug.core
parent061449ade93290d8c9191524afa1b94b8c673c28 (diff)
downloadeclipse.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>
Diffstat (limited to 'org.eclipse.debug.core')
-rw-r--r--org.eclipse.debug.core/core/org/eclipse/debug/internal/core/LaunchConfiguration.java9
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

Back to the top