qadevOOo/runner/util/utils.java | 12 ++++++++++++ 1 file changed, 12 insertions(+)
New commits: commit aaf3bc89d722ea3c034fd417cc36db9e4bbc125f Author: Noel Grandin <n...@peralex.com> Date: Tue Nov 17 13:55:48 2015 +0100 backport implementation part of 754ade38ddb2e96187d00f3e621203cea34961fa Change-Id: I7c732d94346be8f37fba1a32655ba224c74e0235 Reviewed-on: https://gerrit.libreoffice.org/20017 Reviewed-by: Noel Grandin <noelgran...@gmail.com> Tested-by: Noel Grandin <noelgran...@gmail.com> Reviewed-by: Michael Stahl <mst...@redhat.com> Tested-by: Michael Stahl <mst...@redhat.com> diff --git a/qadevOOo/runner/util/utils.java b/qadevOOo/runner/util/utils.java index 4a77e41..766f4e5 100644 --- a/qadevOOo/runner/util/utils.java +++ b/qadevOOo/runner/util/utils.java @@ -30,6 +30,7 @@ import java.net.ServerSocket; import java.net.URI; import java.net.URISyntaxException; +import com.sun.star.awt.XToolkitExperimental; import com.sun.star.beans.XPropertySet; import com.sun.star.beans.Property; import com.sun.star.lang.XMultiServiceFactory; @@ -661,6 +662,17 @@ public class utils { } } + public static void waitForEventIdle(XMultiServiceFactory xMSF) { + try { + XToolkitExperimental xToolkit = UnoRuntime.queryInterface( + XToolkitExperimental.class, + xMSF.createInstance("com.sun.star.awt.Toolkit")); + xToolkit.processEventsToIdle(); + } catch (com.sun.star.uno.Exception ex) { + throw new RuntimeException(ex); + } + } + /** * Validate the AppExecutionCommand. Returned is an error message, starting * with "Error:", or a warning, if the command might work. _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits