I am developing a plugin for Eclipse. I am using JavaFX for multiple features of this plugin. I have a menu built into the UI of Eclipse with handlers for each command i.e. each feature clicked. For example: user clicks "Start Symbol Table" then the SymbolTableHandler is called.
Each of these handlers starts a JavaFX application from an Eclipse job to make sure the UI does not become unresponsive. The JavaFX applications use application.launch()
to begin.
My problem is that when a user starts two features, an error is thrown due to the limitation of only being allowed to call application.launch()
once.
This would not be a problem if all features started together as I could create new stages etc.
So is there a way to mimic application.launch
multiple times so multiple tables/features of this plugin can be run together ?
I have come up with a solution if anyone cares for the code.