Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAxel Richard2015-05-27 07:18:20 +0000
committerLaurent Delaigue2015-05-27 09:20:58 +0000
commite49010e51b5e938608e57a9ccaf8a3256e398756 (patch)
treee6cb6834c3f44ba3728ebcf71c9930bd69af2e56 /plugins
parentee8a3eeb1c0881002546a443bc3f22524529a7ac (diff)
downloadorg.eclipse.emf.compare-e49010e51b5e938608e57a9ccaf8a3256e398756.tar.gz
org.eclipse.emf.compare-e49010e51b5e938608e57a9ccaf8a3256e398756.tar.xz
org.eclipse.emf.compare-e49010e51b5e938608e57a9ccaf8a3256e398756.zip
[467684] Fix CompareToolbar is grayed out after saving
The initialization of the toolbar was made asynchronously, so sometimes the enablement was done before the initialization. Change to synchronous execution solves the problem. Bug: 467684 Change-Id: I05b7ec65753e01a42e5340da2e78492f50f6a67f Signed-off-by: Axel Richard <axel.richard@obeo.fr>
Diffstat (limited to 'plugins')
-rw-r--r--plugins/org.eclipse.emf.compare.ide.ui/src/org/eclipse/emf/compare/ide/ui/internal/structuremergeviewer/EMFCompareStructureMergeViewer.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/org.eclipse.emf.compare.ide.ui/src/org/eclipse/emf/compare/ide/ui/internal/structuremergeviewer/EMFCompareStructureMergeViewer.java b/plugins/org.eclipse.emf.compare.ide.ui/src/org/eclipse/emf/compare/ide/ui/internal/structuremergeviewer/EMFCompareStructureMergeViewer.java
index 4b72024bd..8f8e4f873 100644
--- a/plugins/org.eclipse.emf.compare.ide.ui/src/org/eclipse/emf/compare/ide/ui/internal/structuremergeviewer/EMFCompareStructureMergeViewer.java
+++ b/plugins/org.eclipse.emf.compare.ide.ui/src/org/eclipse/emf/compare/ide/ui/internal/structuremergeviewer/EMFCompareStructureMergeViewer.java
@@ -362,7 +362,7 @@ public class EMFCompareStructureMergeViewer extends AbstractStructuredViewerWrap
* @see #compareInputChanged(ICompareInput, IProgressMonitor)
*/
private void initToolbar() {
- SWTUtil.safeAsyncExec(new Runnable() {
+ SWTUtil.safeSyncExec(new Runnable() {
public void run() {
toolBar.initToolbar(getViewer(), navigatable);

Back to the top