Author: dmaliarevich
Date: 2010-03-05 08:52:12 -0500 (Fri, 05 Mar 2010)
New Revision: 20684
Modified:
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/jspeditor/JSPTextEditor.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-5874 -- drop down command launching was changed
to asuncExec().
Modified:
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/jspeditor/JSPTextEditor.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/jspeditor/JSPTextEditor.java 2010-03-05
12:01:46 UTC (rev 20683)
+++
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/jspeditor/JSPTextEditor.java 2010-03-05
13:52:12 UTC (rev 20684)
@@ -741,9 +741,9 @@
* Fixes
https://jira.jboss.org/jira/browse/JBIDE-5874
* Display.getDefault() should always be replaced by
* PlatformUI.getWorkbench().getDisplay().
- * syncExec() will reduce the number if simultaneously launched threads.
+ * syncExec() can hang the JBDS thus asyncExec is used.
*/
- PlatformUI.getWorkbench().getDisplay().syncExec(new Runnable() {
+ PlatformUI.getWorkbench().getDisplay().asyncExec(new Runnable() {
public void run() {
if (o != null
&& !XModelTransferBuffer.getInstance().isEnabled()) {