Author: Grid.Qian
Date: 2009-12-01 02:41:03 -0500 (Tue, 01 Dec 2009)
New Revision: 18941
Modified:
trunk/bpel/plugins/org.eclipse.bpel.ui/src/org/eclipse/bpel/ui/BPELMultipageEditorPart.java
Log:
JBIDE-5324: Invalid thread access when refreshing or adding validation markers
Modified:
trunk/bpel/plugins/org.eclipse.bpel.ui/src/org/eclipse/bpel/ui/BPELMultipageEditorPart.java
===================================================================
---
trunk/bpel/plugins/org.eclipse.bpel.ui/src/org/eclipse/bpel/ui/BPELMultipageEditorPart.java 2009-12-01
06:19:42 UTC (rev 18940)
+++
trunk/bpel/plugins/org.eclipse.bpel.ui/src/org/eclipse/bpel/ui/BPELMultipageEditorPart.java 2009-12-01
07:41:03 UTC (rev 18941)
@@ -1043,7 +1043,17 @@
fDesignViewer.getTrayViewer().setContents(getProcess());
- updateMarkersHard();
+ //Bugzilla 294501 - When markers are added on the BPEL file, the meta-model
+ //objects are notified about the marker change. But the display of the markers
+ //on the diagram fails because of several invalid thread access exceptions.
+ //Thus, encapsulating the marker update into a separate thread
+ //Note: supposedly only happens on Galileo (== Eclipse 3.5)
+ Display.getDefault().asyncExec( new Runnable() {
+ public void run() {
+ updateMarkersHard();
+ }
+ });
+
}
protected void updateMarkersHard () {
Show replies by date