Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSarika Sinha2014-11-17 10:06:03 +0000
committerSarika Sinha2014-11-17 10:06:03 +0000
commit4100ec57ed76bbbfccf4b3c1a4d240ef444ea584 (patch)
tree50a984c6fdf96e7d4c6b268d5b5871090feafa9c
parent0fb2d7b735ddfacbeb71b0e3eb276df73c2996f9 (diff)
downloadeclipse.jdt.debug-4100ec57ed76bbbfccf4b3c1a4d240ef444ea584.tar.gz
eclipse.jdt.debug-4100ec57ed76bbbfccf4b3c1a4d240ef444ea584.tar.xz
eclipse.jdt.debug-4100ec57ed76bbbfccf4b3c1a4d240ef444ea584.zip
Bug 446040 - Invalid thread access inI20141118-0830I20141118-0800
RuntimeClasspathViewer$1.preferenceChange (err_grp: 87791828) Change-Id: I18e73c4e2e8d1a9e6fdb661fb589d6c60bf635a1 Signed-off-by: Sarika Sinha <sarika.sinha@in.ibm.com>
-rw-r--r--org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/classpath/RuntimeClasspathViewer.java16
1 files changed, 13 insertions, 3 deletions
diff --git a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/classpath/RuntimeClasspathViewer.java b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/classpath/RuntimeClasspathViewer.java
index 2490d906d..a4229509d 100644
--- a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/classpath/RuntimeClasspathViewer.java
+++ b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/classpath/RuntimeClasspathViewer.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2012 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
@@ -17,10 +17,11 @@ import java.util.List;
import org.eclipse.core.runtime.ListenerList;
import org.eclipse.core.runtime.preferences.IEclipsePreferences;
-import org.eclipse.core.runtime.preferences.InstanceScope;
import org.eclipse.core.runtime.preferences.IEclipsePreferences.IPreferenceChangeListener;
import org.eclipse.core.runtime.preferences.IEclipsePreferences.PreferenceChangeEvent;
+import org.eclipse.core.runtime.preferences.InstanceScope;
import org.eclipse.debug.core.ILaunchConfiguration;
+import org.eclipse.debug.internal.ui.DebugUIPlugin;
import org.eclipse.jdt.internal.debug.ui.actions.RuntimeClasspathAction;
import org.eclipse.jdt.internal.debug.ui.launcher.IClasspathViewer;
import org.eclipse.jdt.internal.debug.ui.launcher.IEntriesChangedListener;
@@ -55,7 +56,16 @@ public class RuntimeClasspathViewer extends TreeViewer implements IClasspathView
private IPreferenceChangeListener fPrefListeners = new IPreferenceChangeListener() {
public void preferenceChange(PreferenceChangeEvent event) {
- refresh(true);
+ if (DebugUIPlugin.getStandardDisplay().getThread().equals(Thread.currentThread())) {
+ refresh(true);
+ } else {
+ DebugUIPlugin.getStandardDisplay().syncExec(new Runnable() {
+ public void run() {
+ refresh(true);
+ }
+ });
+ }
+
}
};

Back to the top