Skip to content

#579: add boolean show constructors to AboutBox and MultiEntryComponentDialog#602

Merged
dbenn merged 3 commits into
masterfrom
579-optional-window-owner-param
May 16, 2026
Merged

#579: add boolean show constructors to AboutBox and MultiEntryComponentDialog#602
dbenn merged 3 commits into
masterfrom
579-optional-window-owner-param

Conversation

@dbenn
Copy link
Copy Markdown
Collaborator

@dbenn dbenn commented May 16, 2026

Decouple both dialogs from Mediator.getUI() to enable headless testing.

  • AboutBox: add package-private AboutBox(boolean show) constructor that skips UI panel building, setLocationRelativeTo, and setVisible when show=false; the public no-arg constructor delegates with show=true.
  • MultiEntryComponentDialog: add package-private 5-arg constructor (title, helpTopic, fields, additionalUIComponent, show) that guards setLocationRelativeTo and setVisible behind show; the existing public 4-arg constructor delegates with show=true — all other overloads are unchanged.
  • Add AboutBoxTest and MultiEntryComponentDialogTest exercising the new show=false path; register both in AllTests.java.

…ntDialog

Decouple both dialogs from Mediator.getUI() to enable headless testing.

* AboutBox: add package-private AboutBox(boolean show) constructor that
  skips UI panel building, setLocationRelativeTo, and setVisible when
  show=false; the public no-arg constructor delegates with show=true.
* MultiEntryComponentDialog: add package-private 5-arg constructor
  (title, helpTopic, fields, additionalUIComponent, show) that guards
  setLocationRelativeTo and setVisible behind show; the existing public
  4-arg constructor delegates with show=true — all other overloads are
  unchanged.
* Add AboutBoxTest and MultiEntryComponentDialogTest exercising the
  new show=false path; register both in AllTests.java.

Co-authored-by: Cursor <cursoragent@cursor.com>
@dbenn dbenn self-assigned this May 16, 2026
@dbenn dbenn added verification Unit tests, static analysis, and other forms of verification and QA UI User Interface tuning labels May 16, 2026
@dbenn dbenn linked an issue May 16, 2026 that may be closed by this pull request
@github-actions
Copy link
Copy Markdown
Contributor

Plugin Unit Tests

All tests passed (Java 17)

Metric Value
Tests 1
Passed 1
Failures 0
Errors 0

@github-actions
Copy link
Copy Markdown
Contributor

VStar Unit Tests

All tests passed (Java 17)

Metric Value
Tests 890
Passed 890
Failures 0
Errors 0

dbenn and others added 2 commits May 17, 2026 00:30
…ryComponentDialogTest

Tests pass correctly under ant test locally.

Co-authored-by: Cursor <cursoragent@cursor.com>
…onentDialog

Clarify that package-private visibility enables test construction
without display, rather than implying tests are the only caller.

Co-authored-by: Cursor <cursoragent@cursor.com>
@dbenn dbenn merged commit 34d704a into master May 16, 2026
20 checks passed
@dbenn dbenn deleted the 579-optional-window-owner-param branch May 16, 2026 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

UI User Interface tuning verification Unit tests, static analysis, and other forms of verification and QA

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Address lack of GUI code coverage

1 participant