-
Notifications
You must be signed in to change notification settings - Fork 221
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Enabled loading of FXML files via drag&drop to WelcomeScreen. #591
Conversation
Can we also make sure that Scene Builder doesn't exit if an invalid FXML is dropped or opened? |
Hi @abhinayagarwal, Thanks for reviewing. I was wrong with my previous statement and after some reading #585 turned out to be the relevant PR for this. Please have a look at PR #585, this one exactly addresses the issue of error reporting and keeping the Welcome Page open. Its a bit more complex but this is IMHO a good basis for #591. Both combined work quite well. My proposal is to merge PR #585 first, then get the drag&drop one merged. |
This feature PR introduces drag&drop to the welcome page.
One now can select a group of files and directories and drag them over the welcome page. On drop, the files are filtered to be FXML files and dropped subdirectories are searched for FXML files in first level.
All FXML files found will be passed to the file open process of Scene Builder.
For unsupported files or empty directories no message will be displayed as long as at least one file can be loaded.
If no file can be loaded at all, a message is displayed to the user that there were either unsupported files and/or the selected directories did not contain any supported file.
Issue
Fixes #584
Progress