Skip to content

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
@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

Eswcvlad and others added 4 commits July 28, 2025 16:45
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.
Update getTraceString in ErrorDialogPane to show the error message and cause, if available.
@Eswcvlad Eswcvlad force-pushed the object-loader-logging branch from 1aeaf77 to 8e37ccb Compare July 28, 2025 13:46
@iText-CI iText-CI assigned iText-CI and unassigned iText-CI Aug 11, 2025
@iText-CI iText-CI assigned iText-CI and unassigned iText-CI Sep 21, 2025
@iText-CI iText-CI assigned iText-CI and unassigned iText-CI Oct 6, 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.

4 participants