Was a TODO in FXRobot:
// TODO: need to devise a cross implementation way of doing this
// public function waitForFirstRepaint(timeout: Integer) : Void {
// def latch : CountDownLatch = new CountDownLatch(1);
// FX.deferAction(function(): Void {
// var tracker = com.sun.javafx.perf.PerformanceTracker.getSceneTracker(target);
// var f = tracker.onFirstPulse;
// tracker.onFirstPulse = function():Void {
// latch.countDown();
// if (f != null) {
// tracker.onFirstPulse = f;
// }
// }
// });
// while (true) {
// try {
// latch.await(timeout, java.util.concurrent.TimeUnit.MILLISECONDS);
// break;
// } catch (e: java.lang.InterruptedException) {}
// }
// }
// TODO: need to devise a cross implementation way of doing this
// public function waitForFirstRepaint(timeout: Integer) : Void {
// def latch : CountDownLatch = new CountDownLatch(1);
// FX.deferAction(function(): Void {
// var tracker = com.sun.javafx.perf.PerformanceTracker.getSceneTracker(target);
// var f = tracker.onFirstPulse;
// tracker.onFirstPulse = function():Void {
// latch.countDown();
// if (f != null) {
// tracker.onFirstPulse = f;
// }
// }
// });
// while (true) {
// try {
// latch.await(timeout, java.util.concurrent.TimeUnit.MILLISECONDS);
// break;
// } catch (e: java.lang.InterruptedException) {}
// }
// }
- relates to
-
JDK-8156809 Remove obsolete com.sun.javafx.robot package
-
- Resolved
-