|
3 | 3 | import com.google.common.eventbus.EventBus; |
4 | 4 | import com.google.common.eventbus.Subscribe; |
5 | 5 | import com.google.inject.Singleton; |
6 | | -import com.sun.javafx.application.PlatformImpl; |
7 | 6 | import edu.wpi.grip.core.*; |
8 | 7 | import edu.wpi.grip.core.events.*; |
9 | 8 | import edu.wpi.grip.ui.annotations.ParametrizedController; |
|
12 | 11 | import edu.wpi.grip.ui.pipeline.source.SourceControllerFactory; |
13 | 12 | import edu.wpi.grip.ui.util.GRIPPlatform; |
14 | 13 | import edu.wpi.grip.ui.util.NodeControllerManager; |
| 14 | +import javafx.application.Platform; |
15 | 15 | import javafx.beans.InvalidationListener; |
16 | 16 | import javafx.beans.property.ReadOnlyObjectProperty; |
17 | 17 | import javafx.collections.ObservableList; |
@@ -207,7 +207,9 @@ private void addConnectionView(Connection connection) { |
207 | 207 | final double x2 = inputSocketBounds.getMinX() + inputSocketBounds.getWidth() / 2.0; |
208 | 208 | final double y2 = inputSocketBounds.getMinY() + inputSocketBounds.getHeight() / 2.0; |
209 | 209 |
|
210 | | - PlatformImpl.runAndWait(() -> { |
| 210 | + // This can run whenever. Don't wait for it to complete. |
| 211 | + // This should be Platform.runLater |
| 212 | + Platform.runLater(() -> { |
211 | 213 | connectionView.inputHandleProperty().setValue(new Point2D(x1, y1)); |
212 | 214 | connectionView.outputHandleProperty().setValue(new Point2D(x2, y2)); |
213 | 215 | ((ReadOnlyObjectProperty) observable).get(); |
|
0 commit comments