Relocate BitsquareUI#getPrimaryStage

This commit is contained in:
Chris Beams 2014-11-04 13:27:11 +01:00
parent f278db01ac
commit ad1b3ccd1e
No known key found for this signature in database
GPG key ID: 3D214F8F5BC5ED73

View file

@ -58,10 +58,6 @@ public class BitsquareUI extends Application {
this.injector = Guice.createInjector(bitsquareModule); this.injector = Guice.createInjector(bitsquareModule);
} }
public static Stage getPrimaryStage() {
return primaryStage;
}
@Override @Override
public void start(Stage primaryStage) { public void start(Stage primaryStage) {
BitsquareUI.primaryStage = primaryStage; BitsquareUI.primaryStage = primaryStage;
@ -137,4 +133,8 @@ public class BitsquareUI extends Application {
bitsquareModule.close(injector); bitsquareModule.close(injector);
System.exit(0); System.exit(0);
} }
public static Stage getPrimaryStage() {
return primaryStage;
}
} }