(final Runnable runnable)
| 84 | } |
| 85 | |
| 86 | @Override |
| 87 | public |
| 88 | boolean dispatch(final Runnable runnable) { |
| 89 | // JavaFX only |
| 90 | if (isEventThread()) { |
| 91 | // Run directly on the JavaFX event thread |
| 92 | runnable.run(); |
| 93 | } |
| 94 | else { |
| 95 | javafx.application.Platform.runLater(runnable); |
| 96 | } |
| 97 | |
| 98 | // javaFX always manages the runnable |
| 99 | return true; |
| 100 | } |
| 101 | } |
no test coverage detected