Skip to content

Pull Request to create/update 'rebased/object-loader-logging' branch #172

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

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

iText-CI
Copy link
Contributor

Programmatically created Pull Request to automatically keep merge branch to develop up-to-date

@Eswcvlad
Copy link
Contributor

This PR contains UX and error handling fixes with the object loading dialog. Should fix issues found, when testing #36.

@Eswcvlad Eswcvlad requested a review from michaeldemey April 25, 2025 19:09
As it turns out, SwingWorker still called done, even if the body of the
task itself threw an exception. So it just pushes the open event, even
though `nodes` is null.

What's annoying, is that there doesn't seem to be a good mechanism for
getting that exception... You either need to handle it yourself within
`doInBackground` and then read that exception data in `done`, or abuse
`SwingWorker::get` and catch an `ExecutionException`.

See issue #36 for discovery.
This already happened in previous version without the recent changes.
There could be a race, where raw setVisible(false) call executes before
the initial invokeLater call to show it in the first place.
* The dialog is now resizeable.
* Default size of the dialog now is set to the smallest size, which can
  fit the whole message without scrolling. But with a limit based on
  the display size.
@Eswcvlad Eswcvlad force-pushed the object-loader-logging branch from b62e8d6 to 43eced6 Compare April 26, 2025 18:23
Copy link
Contributor

@michaeldemey michaeldemey left a comment

Choose a reason for hiding this comment

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

lgtm

@iText-CI iText-CI assigned iText-CI and unassigned iText-CI May 8, 2025
@iText-CI iText-CI assigned iText-CI and unassigned iText-CI May 16, 2025
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.

3 participants