Enable multi-status dialog when message exceeds threshold#907
Enable multi-status dialog when message exceeds threshold#907SougandhS merged 1 commit intoeclipse-jdt:masterfrom
Conversation
There was a problem hiding this comment.
Pull request overview
Enables switching from a large single-status error dialog to a scrollable multi-status dialog when a status message exceeds a line threshold, improving readability for long multi-line error messages in the Debug UI.
Changes:
- Add a line-threshold check in
JDIDebugUIPlugin.statusDialog(String, IStatus)and wrap long messages in aMultiStatus. - Add a new NLS message key/field for the multi-status summary label.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 6 comments.
| File | Description |
|---|---|
| org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/JDIDebugUIPlugin.java | Adds line counting and wraps long messages into MultiStatus before opening dialogs. |
| org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/DebugUIMessages.properties | Adds label text used for the multi-status summary message. |
| org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/DebugUIMessages.java | Adds the corresponding NLS field for the new message key. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/JDIDebugUIPlugin.java
Outdated
Show resolved
Hide resolved
org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/JDIDebugUIPlugin.java
Outdated
Show resolved
Hide resolved
org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/JDIDebugUIPlugin.java
Outdated
Show resolved
Hide resolved
org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/DebugUIMessages.properties
Outdated
Show resolved
Hide resolved
org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/JDIDebugUIPlugin.java
Outdated
Show resolved
Hide resolved
org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/JDIDebugUIPlugin.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 3 out of 3 changed files in this pull request and generated 5 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/JDIDebugUIPlugin.java
Outdated
Show resolved
Hide resolved
org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/DebugUIMessages.properties
Outdated
Show resolved
Hide resolved
org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/JDIDebugUIPlugin.java
Outdated
Show resolved
Hide resolved
org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/JDIDebugUIPlugin.java
Outdated
Show resolved
Hide resolved
org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/JDIDebugUIPlugin.java
Outdated
Show resolved
Hide resolved
c0274eb to
f1b9c3d
Compare
008b12d to
9418433
Compare
org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/JDIDebugUIPlugin.java
Outdated
Show resolved
Hide resolved
org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/JDIDebugUIPlugin.java
Show resolved
Hide resolved
ed17280 to
6130813
Compare
|
Can be merged from my POV. |
|
Thanks @trancexpress |
Improve the Status Dialog by enabling a multi-status when the no. status message lines exceeds a predefined line threshold. This enhances readability.
|
Merging this now 👍 |
Improve the Status Dialog by enabling a multi-status when the no. status message lines exceeds a predefined line threshold. This enhances readability.
Steps to check
Current
A huge error dialog will open, but not a scrollable one, so users can't see every messages

With change

A minimilistic (Multi-status) dialog will open which lets user to see all errors by scrolling
What it does
How to test
Author checklist