Skip to content

fix: SceneBuilder will not load missing files from recent projects.#585

Merged
abhinayagarwal merged 44 commits into
gluonhq:masterfrom
Oliver-Loeffler:issue-582
Mar 29, 2024
Merged

fix: SceneBuilder will not load missing files from recent projects.#585
abhinayagarwal merged 44 commits into
gluonhq:masterfrom
Oliver-Loeffler:issue-582

Conversation

@Oliver-Loeffler

@Oliver-Loeffler Oliver-Loeffler commented Oct 10, 2022

Copy link
Copy Markdown
Collaborator

Scene Builder will ask to remove missing files from recent files list.
Welcome Page will not close, there will not be an error message.

AskUserToRemoveMissingFile

Issue

Fixes #582

Progress

@Oliver-Loeffler

Copy link
Copy Markdown
Collaborator Author
Bildschirmaufnahme.2022-10-10.um.23.58.04-1.mov

Window positioning is not yet okay. I am hesitating to touch the AlertDialog for this. Something like positionCentralOver or so could be helpful.

@abhinayagarwal

Copy link
Copy Markdown
Collaborator

The new tests added to the app project doesn't seem to run.

@Oliver-Loeffler

Copy link
Copy Markdown
Collaborator Author

I've moved the surefire-plugin from kit/POM.xml to POM.xml so that now tests of app and kit are executed during Maven build.

Oliver-Loeffler and others added 7 commits November 8, 2022 17:19
Co-authored-by: Oliver-Loeffler <Oliver-Loeffler@users.noreply.github.com>
… eventually tests are also picked up for app module.
Co-authored-by: Oliver-Loeffler <Oliver-Loeffler@users.noreply.github.com>
Co-authored-by: Oliver-Loeffler <Oliver-Loeffler@users.noreply.github.com>
…welcome page in oder to have correct file name rendering for filenames with underscores. (gluonhq#578)

Co-authored-by: Oliver-Loeffler <Oliver-Loeffler@users.noreply.github.com>
@Oliver-Loeffler

Oliver-Loeffler commented Nov 8, 2022

Copy link
Copy Markdown
Collaborator Author

This PR now additionally addresses issue #600 which describes the behavior of unintended closing of SceneBuilder.

@Oliver-Loeffler

Copy link
Copy Markdown
Collaborator Author

Hi @abhinayagarwal, I have now corrected the POM for app. Tests are running now. Could you please review this one again?

@Oliver-Loeffler

Copy link
Copy Markdown
Collaborator Author

@AlmasB Hi Almas, may be you also could have a look on this one!

…m recent items and for cases where errors occured during FXML loading.
@Oliver-Loeffler

Oliver-Loeffler commented Jan 3, 2023

Copy link
Copy Markdown
Collaborator Author

Happy new year SceneBuilder!
Hope you'll had a good start into 2023.

@abhinayagarwal, could you please review this one again? The tests are now triggered properly.

@abhinayagarwal

Copy link
Copy Markdown
Collaborator

A very happy new year to you too!

Hopefully, I can get back to this PR some time this week.

@abhinayagarwal

Copy link
Copy Markdown
Collaborator

Can you please update the branch with latest changes?

@Oliver-Loeffler

Copy link
Copy Markdown
Collaborator Author

I've now merged the latest changes into this one. Also applied reformatting according what checkstyle finds for the change files in main.

@abhinayagarwal

Copy link
Copy Markdown
Collaborator

Testing the changes, it looks good on Mac (including the positioning). However, I find the text on the buttons to be too descriptive for a dialog.

Here is a screenshot from IntelliJ IDEA of a dialog when project is not found:

Screenshot 2023-03-30 at 8 52 34 AM

@Oliver-Loeffler

Oliver-Loeffler commented Mar 30, 2023 via email

Copy link
Copy Markdown
Collaborator Author

@Oliver-Loeffler

Oliver-Loeffler commented Mar 19, 2024

Copy link
Copy Markdown
Collaborator Author

With the reworked ErrorDialog it is also now possible to have a useful title for the error detail. Also in SceneBuilderApp the dialog is now called in such way, so we always have a correct modality and one cannot loose a window.

As mentioned before, the error detail is a detail, the dialog requires user action to open.

Actually, it would be quite useful to add some proper log messages here.

ModalityEditor

ModalityWelcome

Comment thread app/src/main/java/com/oracle/javafx/scenebuilder/app/SceneBuilderApp.java Outdated
Comment thread app/src/main/java/com/oracle/javafx/scenebuilder/app/SceneBuilderApp.java Outdated
Comment thread app/src/main/java/com/oracle/javafx/scenebuilder/app/SceneBuilderApp.java Outdated
Comment thread app/src/main/java/com/oracle/javafx/scenebuilder/app/SceneBuilderApp.java Outdated
Comment thread app/src/test/java/com/oracle/javafx/scenebuilder/app/JfxInitializer.java Outdated
@Oliver-Loeffler

Copy link
Copy Markdown
Collaborator Author

If this PR gets approved and merged, I'd like to continue with #576 which then would fix #120.

@abhinayagarwal abhinayagarwal left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@Oliver-Loeffler

Copy link
Copy Markdown
Collaborator Author

It took a while but actually I am also now happy with the outcome. Thanks for your feedback.

@Oliver-Loeffler Oliver-Loeffler left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the feedback @abhinayagarwal and @AlmasB. That seems to be okay now. The issues with the error dialog are valid but should be resolved in a separate PR.

@abhinayagarwal abhinayagarwal merged commit 976c754 into gluonhq:master Mar 29, 2024
@Oliver-Loeffler Oliver-Loeffler deleted the issue-582 branch April 2, 2024 07:42
@Oliver-Loeffler

Copy link
Copy Markdown
Collaborator Author

This one fixed also #600.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Scene Builder closes after attempt to open a no longer existing file from welcome page recent projects

3 participants