Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarin Wright2007-11-28 15:32:31 +0000
committerDarin Wright2007-11-28 15:32:31 +0000
commit2b7c6dec76967e0b70cbc2ae14af6fafe4609741 (patch)
treedcc8daf303a51a9d5ee3e982fb635fad5140dce4 /org.eclipse.debug.ui
parent03413c969847122cdbe7411a29c7a3b0937b10dc (diff)
downloadeclipse.platform.debug-2b7c6dec76967e0b70cbc2ae14af6fafe4609741.tar.gz
eclipse.platform.debug-2b7c6dec76967e0b70cbc2ae14af6fafe4609741.tar.xz
eclipse.platform.debug-2b7c6dec76967e0b70cbc2ae14af6fafe4609741.zip
Bug 198428 - Deadlock deleting launch configuration
Diffstat (limited to 'org.eclipse.debug.ui')
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationView.java34
1 files changed, 12 insertions, 22 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationView.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationView.java
index 5b3d3126d..da47d8623 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationView.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationView.java
@@ -248,18 +248,13 @@ public class LaunchConfigurationView extends AbstractDebugView implements ILaunc
*/
public void launchConfigurationAdded(final ILaunchConfiguration configuration) {
if(isSupportedConfiguration(configuration)) {
+ // handle asynchronously: @see bug 198428 - Deadlock deleting launch configuration
Display display = DebugUIPlugin.getStandardDisplay();
- if (display.getThread() == Thread.currentThread()) {
- // If we're already in the UI thread (user pressing New in the
- // dialog), update the tree immediately.
- handleConfigurationAdded(configuration);
- } else {
- display.asyncExec(new Runnable() {
- public void run() {
- handleConfigurationAdded(configuration);
- }
- });
- }
+ display.asyncExec(new Runnable() {
+ public void run() {
+ handleConfigurationAdded(configuration);
+ }
+ });
}
}
@@ -342,18 +337,13 @@ public class LaunchConfigurationView extends AbstractDebugView implements ILaunc
if (to != null) {
return;
}
+ // handle asynchronously: @see bug 198428 - Deadlock deleting launch configuration
Display display = DebugUIPlugin.getStandardDisplay();
- if (display.getThread() == Thread.currentThread()) {
- // If we're already in the UI thread (user pressing Delete in the
- // dialog), update the tree immediately.
- handleConfigurationRemoved(configuration);
- } else {
- display.asyncExec(new Runnable() {
- public void run() {
- handleConfigurationRemoved(configuration);
- }
- });
- }
+ display.asyncExec(new Runnable() {
+ public void run() {
+ handleConfigurationRemoved(configuration);
+ }
+ });
}
/**

Back to the top