Fix Undo Poof animation not working on later version of Mac OS X
@@ -13,6 +13,7 @@ import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.widgets.Display;
import com.archimatetool.editor.ui.IArchiImages;
+import com.archimatetool.editor.utils.PlatformUtils;
/**
@@ -72,6 +73,11 @@ class PoofAnimater {
try { Thread.sleep(30); } catch(InterruptedException ex) { }
+ // Later versions of Mac OS X require this
+ if(PlatformUtils.isMac()) {
+ while(Display.getCurrent().readAndDispatch());
+ }
+
if(forward) {
index ++;
}
