Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Struckmann2015-09-24 13:34:51 +0000
committerSebastian Struckmann2015-09-24 13:34:51 +0000
commitc2116a9ef50d704fef2f2bb2bed20258f8bc41a5 (patch)
treeb57f5c1abfc825eccd3f7a690120b92dda401294 /org.eclipse.jubula.client.ui.rcp
parent396a3297cda7eb3865b052a4d7e65af43cd4e396 (diff)
downloadorg.eclipse.jubula.core-c2116a9ef50d704fef2f2bb2bed20258f8bc41a5.tar.gz
org.eclipse.jubula.core-c2116a9ef50d704fef2f2bb2bed20258f8bc41a5.tar.xz
org.eclipse.jubula.core-c2116a9ef50d704fef2f2bb2bed20258f8bc41a5.zip
Non-sprint task - Fix some invalid thread access errors
Diffstat (limited to 'org.eclipse.jubula.client.ui.rcp')
-rw-r--r--org.eclipse.jubula.client.ui.rcp/src/org/eclipse/jubula/client/ui/rcp/editors/TestCaseEditor.java12
1 files changed, 10 insertions, 2 deletions
diff --git a/org.eclipse.jubula.client.ui.rcp/src/org/eclipse/jubula/client/ui/rcp/editors/TestCaseEditor.java b/org.eclipse.jubula.client.ui.rcp/src/org/eclipse/jubula/client/ui/rcp/editors/TestCaseEditor.java
index 7019598b3..308fc7880 100644
--- a/org.eclipse.jubula.client.ui.rcp/src/org/eclipse/jubula/client/ui/rcp/editors/TestCaseEditor.java
+++ b/org.eclipse.jubula.client.ui.rcp/src/org/eclipse/jubula/client/ui/rcp/editors/TestCaseEditor.java
@@ -597,7 +597,11 @@ public class TestCaseEditor extends AbstractTestCaseEditor
*/
public void handlePropertyChanged(boolean isCompNameChanged) {
super.handlePropertyChanged(isCompNameChanged);
- m_eventHandlerTreeViewer.refresh();
+ Plugin.getDisplay().syncExec(new Runnable() {
+ public void run() {
+ getEventHandlerTreeViewer().refresh();
+ }
+ });
}
@Override
@@ -631,7 +635,11 @@ public class TestCaseEditor extends AbstractTestCaseEditor
@Override
public void refresh() {
super.refresh();
- getEventHandlerTreeViewer().refresh(true);
+ Plugin.getDisplay().syncExec(new Runnable() {
+ public void run() {
+ getEventHandlerTreeViewer().refresh();
+ }
+ });
}
/** {@inheritDoc} */

Back to the top