OSDN Git Service

Fix threading issue with layout reload
authorTor Norbye <tnorbye@google.com>
Fri, 10 Dec 2010 02:48:40 +0000 (18:48 -0800)
committerTor Norbye <tnorbye@google.com>
Fri, 10 Dec 2010 02:48:40 +0000 (18:48 -0800)
commit69b505e5c736dfdee0ddb3408e687f3269bfee16
treeef0f442dc8345522ce1ee5aae1ff30f0b1897926
parentb1be6238d45ee57214c25e0d80a03cf73161e6f8
Fix threading issue with layout reload

The layout change listener (which can be called on any thread) must
not access SWT state unless it's on the SWT thread. There were some
existing SWT-redispatch blocks to handle this, but one code path was
missing. This changeset moves the entire method under a single SWT
redispatch block instead.

Change-Id: I7d802d78fbdd4811c68de830e1a54b1a97d76b5f
eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/GraphicalEditorPart.java