Skip to content

enhancement/issue-52: API changes requested to support persistence - #53

Merged
Col-E merged 5 commits into
Col-E:masterfrom
philliplbryant:enhancement/issue-52
Sep 18, 2026
Merged

Col-E merged 5 commits into
Col-E:masterfrom
philliplbryant:enhancement/issue-52

Conversation

@philliplbryant

Copy link
Copy Markdown
Contributor

Closes #52 - API changes needed to save and restore layouts from a separate persistence module:

  • Promoted matchesIdentity(final @Nullable Identifiable other) as default implementation in Identifiable interface.
  • Deleted duplicate matchesIdentity(final @Nullable Identifiable other) methods from Identifiable implementations.
  • Modified Bento to implement Identifiable interface, added a second constructor to accept an identifier as a parameter, and modified the default constructor to provide a default identifier.
  • Increased the scope of some methods from private to public.
  • Modified DragDropStage to make the parent attribute nullable.
  • Added setUncollapsedSize(double size) to DockContainerLeaf.

No changes to existing behavior.
Independent of PRs #46, #48, and #50.

philliplbryant and others added 5 commits September 15, 2026 07:57
* Promoted `matchesIdentity(final @nullable Identifiable other)` as default implementation in `Identifiable` interface.
* Deleted duplicate `matchesIdentity(final @nullable Identifiable other)` methods from `Identifiable` implementations.
* Modified `Bento` to implement `Identifiable` interface, added a second constructor to accept an `identifier` as a parameter, and modified the default constructor to provide a default `identifier`.
* Increased the scope of some methods from `private` to `public`.
* Modified `DragDropStage` to make the `parent` attribute nullable.
* Added `setUncollapsedSize(double size)` to `DockContainerLeaf`.
* Deleted duplicate `matchesIdentity(final @nullable Identifiable other)` methods from `Dockable` and `DockContainerBranch`.
* Add Javadocs.
* Convert spaces to tabs.
* Add test for default `matchesIdentity` implementation that was moved to the `Identifiable` interface.
Comment thread core/src/test/java/software/coley/bentofx/IdentifiableTest.java
@Col-E Col-E added the enhancement New feature or request label Sep 18, 2026
@Col-E
Col-E merged commit e6df2b1 into Col-E:master Sep 18, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

API Changes Requested to Support Persistence

2 participants