Kaydet (Commit) ab6ec7c8 authored tarafından Noel Grandin's avatar Noel Grandin Kaydeden (comit) Andras Timar

backport implementation part of 754ade38

Change-Id: I7c732d94346be8f37fba1a32655ba224c74e0235
Reviewed-on: https://gerrit.libreoffice.org/20017Reviewed-by: 's avatarNoel Grandin <noelgrandin@gmail.com>
Tested-by: 's avatarNoel Grandin <noelgrandin@gmail.com>
Reviewed-by: 's avatarMichael Stahl <mstahl@redhat.com>
Tested-by: 's avatarMichael Stahl <mstahl@redhat.com>
(cherry picked from commit aaf3bc89)
üst 64fb8e36
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment