Open gluon-bot opened 9 years ago
I think PR #236 addresses some of the points in this issue. Please share your thoughts about (unfortunately seems that alexander casall is not a github user..)
Okay, let's revive this issue here.
Shall Scene Builder offer workspaces as an option parallel to the current mode of operation (working with single, isolated files, having a shared libs folder)?
For this purpose, I've resorted to use Intellij IDEA's embedded JavaFX Scene Builder, which treats the project as a workspace. Maybe the standalone Scene Builder application can use that as a reference/inspiration?
Thanks for the hint, yes, very good idea to use this as inspiration. I never used the embedded version so didn't know about this feature.
Scene Builder workspace is obviously a good idea but we need to have enough use-cases before we move forward with it.
Scene Builder can be used across multiple JavaFX projects which can have their own set of custom controls. Apart from custom controls, is their anything else which we would like to isolate in Scene Builder?
One thing that comes to my mind is the JavaFX version used to create the FXML namespace. For example, if you use Scene Builder 16 to create FXML. it will contain the following entry in the xlmns
tag:
xmlns="http://javafx.com/javafx/16
This FXML when used in a project running with JavaFX 11 will throw:
WARNING: Loading FXML document with JavaFX API of version 16 by JavaFX runtime of version 11
This is because there is a check in FXMLLoader which throws the warning if the major version of JavaFX doesn't match FXML namespace version.
Instead of blindly creating FXML using the JavaFX bundled version, Scene Builder could creates FXMLs with different JavaFX namespace. This version can have a one to one relationship with the JavaFX version used in the project.
The namespace preference is a very good idea, this is indeed something which is missing. Is it currently only the namespace element or does FXML indeed provide already different elements/attributes as per JavaFX version?
@abhinayagarwal This feels like enhancing the FXOM so, that we can once create JavaFX version specific FXML.
Originally reported by: Alexander Casall (Bitbucket: acasall, GitHub: Unknown)
I often have to do the same steps for multiple FXML files in one project. This steps should be saved in a workspace and should by applied to all FXML files of the workspace
For: