-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This patch includes updates to multiple Java classes within the `com.…
…osiris.desku.ui` package. The changes primarily focus on improving the functionality of UI components and enhancing debugging capabilities. Below are the key changes: 1. **FileChooser.java**: - Added a line to toggle the visibility of `directoryView` when a file path button is clicked. 2. **Tooltip.java**: - Simplified the JavaScript execution by directly using `parent.executeJSForced` instead of fetching UI context separately. 3. **UI.java**: - Modified `executeJavaScriptSafely` to return a `CompletableFuture<Void>`, allowing asynchronous handling of JavaScript execution. - Introduced deeper debugging by capturing stack traces and logging detailed component hierarchy information. - Refined the process of safely attaching components to their parents, ensuring that parents are attached before their children. - Added handling for invalid parent scenarios, which can indicate that a component was not properly added to a parent. 4. **Component.java**: - Added an `executeJSForced` method to ensure JavaScript code is executed even if the UI is still loading. - Enhanced event handling for component attachment and detachment, improving the reliability of JavaScript execution tied to component lifecycle events. - Introduced a stack trace capture feature for better debugging when components are created. 5. **FileChooserTest.java**: - Modified the test method to use `testIndefinitely` instead of `testAndAwaitResult`, adapting to the changes in `FileChooser`. These changes improve the robustness, flexibility, and debugging capabilities of the UI components in the Desku project.
- Loading branch information
1 parent
1e1c67e
commit 921a43d
Showing
5 changed files
with
162 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters