restart the application...

32 views
Skip to first unread message

Azad Xoshnow

unread,
Oct 23, 2015, 4:50:15 AM10/23/15
to JRebirth Users
Hi,

how can restart the Application Programatically?

Thx,

Sebastien Bordes

unread,
Oct 23, 2015, 4:36:17 PM10/23/15
to jrebirth-users
Currently it's not possible to restart a JavaFX application, but you can probably reload the scene.

Why do you need that ?

I met this trouble when I tried to write integration tests.

Seb


--
Vous recevez ce message, car vous êtes abonné au groupe Google Groupes "JRebirth Users".
Pour vous désabonner de ce groupe et ne plus recevoir d'e-mails le concernant, envoyez un e-mail à l'adresse jrebirth-user...@googlegroups.com.
Pour obtenir davantage d'options, consultez la page https://groups.google.com/d/optout.



--

Azad Xoshnow

unread,
Oct 23, 2015, 5:39:27 PM10/23/15
to JRebirth Users
Hi Sebastian,

actually the Restart is not the aim. I need to change The Display Language (For Example with new Login in my Application). But this is also not easy to done as in some issues described.
The Idea , as Workaround, was to save the new Language and forcing the Application to restart and load FXML/PrimaryStage with the new setted Language.

Azad

Sebastien Bordes

unread,
Oct 25, 2015, 5:16:55 PM10/25/15
to JRebirth Users
As I mention here https://groups.google.com/forum/#!topic/jrebirth-users/8F5TP-9Qloc

I will prepare a such feature for 8.1.0 version, but you can try to use DetachModelCommand then ShowModelCommand of the Model you need to reload without forgetting to update the language used between 2 commands.

Seb
Reply all
Reply to author
Forward
0 new messages