[jbosstools-commits] JBoss Tools SVN: r39802 - trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/util.

jbosstools-commits at lists.jboss.org jbosstools-commits at lists.jboss.org
Fri Mar 23 13:37:58 EDT 2012


Author: akazakov
Date: 2012-03-23 13:37:58 -0400 (Fri, 23 Mar 2012)
New Revision: 39802

Modified:
   trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/util/EclipseUIUtil.java
Log:
https://issues.jboss.org/browse/JBIDE-11385 Invalid thread access in CDICoreValidator

Modified: trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/util/EclipseUIUtil.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/util/EclipseUIUtil.java	2012-03-23 16:56:24 UTC (rev 39801)
+++ trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/util/EclipseUIUtil.java	2012-03-23 17:37:58 UTC (rev 39802)
@@ -107,6 +107,9 @@
 		for (IWorkbenchWindow window : windows) {
 			final IWorkbenchPage page = window.getActivePage();
 			if (page != null) {
+				// If this method is invoked in non-UI thread then some editors may throw Invalid Thread Access exception.
+				// We use SafeRunnable as a workaround to avoid crashing. 
+				// See https://issues.jboss.org/browse/JBIDE-11385
 				SafeRunnable sr = new SafeRunnable() {
 					@Override
 					public void run() throws Exception {



More information about the jbosstools-commits mailing list