[Libreoffice-commits] core.git: Branch 'libreoffice-5-0' - qadevOOo/runner

Noel Grandin noel at peralex.com
Tue Nov 17 05:30:46 PST 2015


 qadevOOo/runner/util/utils.java |   12 ++++++++++++
 1 file changed, 12 insertions(+)

New commits:
commit aaf3bc89d722ea3c034fd417cc36db9e4bbc125f
Author: Noel Grandin <noel at 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 <noelgrandin at gmail.com>
    Tested-by: Noel Grandin <noelgrandin at gmail.com>
    Reviewed-by: Michael Stahl <mstahl at redhat.com>
    Tested-by: Michael Stahl <mstahl at 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.


More information about the Libreoffice-commits mailing list