Skip to content

Commit

Permalink
More prints
Browse files Browse the repository at this point in the history
  • Loading branch information
SylvainBertrand committed Feb 12, 2024
1 parent 456d951 commit 1e5f392
Showing 1 changed file with 14 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
import us.ihmc.log.LogTools;
import us.ihmc.scs2.sessionVisualizer.jfx.SessionVisualizerIOTools;

import java.util.Objects;
import java.util.concurrent.Callable;
import java.util.concurrent.CountDownLatch;
import java.util.function.BooleanSupplier;
Expand Down Expand Up @@ -188,7 +189,19 @@ public static void convertEuclidAffineToJavaFXAffine(AffineTransform euclidAffin

public static void runLater(Class<?> caller, Runnable task)
{
Platform.runLater(task::run);
if (caller != null && Objects.equals("ResourceLoadingTest", caller.getSimpleName()))
System.out.println("ResourceLoadingTest: Platform.runLater() start");
try
{
Platform.runLater(task);
}
catch (IllegalStateException e)
{
System.err.println("Exception in Platform.runLater()");
e.printStackTrace();
}
if (caller != null && Objects.equals("ResourceLoadingTest", caller.getSimpleName()))
System.out.println("ResourceLoadingTest: Platform.runLater() end");
}

public static void runLaterIfNeeded(Class<?> caller, Runnable runnable)
Expand Down

0 comments on commit 1e5f392

Please sign in to comment.