Commit b972f9f4 authored by Martti Käärik's avatar Martti Käärik
Browse files

Sirius editor activation involves transactions within editing domain. Since...

Sirius editor activation involves transactions within editing domain. Since refresh operation is also executed within a transaction then we can't block the UI thread while performing the refresh.

Change-Id: Ic1457c0cb8a940f8a884d0d67b6463a7c9ccc0bb
parent 6714bcc7
Loading
Loading
Loading
Loading
+2 −7
Original line number Original line Diff line number Diff line
@@ -79,12 +79,7 @@ class RefreshExtension implements IRefreshExtension {
		
		
		//GMF helper will fail to map view to edit-part if some other editor is active
		//GMF helper will fail to map view to edit-part if some other editor is active
		final IWorkbenchPage page = editor.getSite().getPage();
		final IWorkbenchPage page = editor.getSite().getPage();
		page.getWorkbenchWindow().getShell().getDisplay().syncExec(new Runnable() {
		if (editor.equals(page.getActiveEditor()))
			@Override
			public void run() {
				page.activate(editor);
			}
		});
			dPart.getDiagramEditDomain().getDiagramCommandStack().execute(command);
			dPart.getDiagramEditDomain().getDiagramCommandStack().execute(command);
		
		
	}
	}