Skip to content

Commit 1d8efbd

Browse files
ctruedenclaude
andcommitted
migration.md: say what the presentation metadata actually does
The menu row claimed the menu tree was still planned; it has been built for some time. And the UIDetails row claimed all of the presentation metadata survives, which is true of the metadata and not of the behavior: `selectable` and `selectionGroup` reach the annotation index and stop there, no binding rendering a checkbox or a radio item yet. `isSelected` and `isEnabled` are not migrated at all, and not by oversight: in SciJava Common they are *setters on the description*, the same mutability that made ModuleInfo per-instance and defeated indexing. They are application state rather than metadata, and the row now says so. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NShAz21gbEHnGzhVnC47cb
1 parent 1f0084d commit 1d8efbd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎docs/migration.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ A **dropped** row is a successful outcome, not a gap.
8686
| `Contextual`, `AbstractContextual`, `NullContextException` | dropped — a service receives its context in `Service.initialize(Context)`, so it need not carry one, and there is no null-context state to report | dropped |
8787
| `Gateway`, `AbstractGateway`, `SciJava` | Phase 2, if retained at all | open |
8888
| `Instantiable`, `InstantiableException` | subsumed by `Discovery` | planned |
89-
| `BasicDetails`, `AbstractBasicDetails`, `UIDetails`, `AbstractUIDetails`, `MenuEntry`, `MenuPath` | `scijava-command3` presentation metadata (layer 1). All of it survives — menu path, label, icon, accelerator, weight, selection group, visibility, enablement — but as attributes in the annotation index rather than an inheritance chain every plugin extends | planned |
89+
| `BasicDetails`, `AbstractBasicDetails`, `UIDetails`, `AbstractUIDetails`, `MenuEntry`, `MenuPath` | `scijava-command3` presentation metadata, as attributes in the annotation index rather than an inheritance chain every plugin extends. **Done**: menu path, label, icon, accelerator, weight, visibility — carried by `@Menu`, exposed on `CommandInfo`, rendered by all three bindings. **Declared but not yet rendered**: `selectable` and `selectionGroup` reach the index and stop there. **Not migrated, by design**: `isSelected`/`isEnabled`, which in SciJava Common are *mutable setters on the description* — the same mutability that made `ModuleInfo` per-instance. They are application state rather than metadata; see the presentation-state section of [migration-plan.md](migration-plan.md). `menuRoot` awaits an application with more than one menu root | open |
9090
| `Validated`, `ValidityProblem` | execution layer (Phase 3) | open |
9191
| `Optional` | `scijava-optional` (satellite repo, moves in later) | open |
9292

@@ -130,7 +130,7 @@ A **dropped** row is a successful outcome, not a gap.
130130
| `ui.javafx` (satellite repo `scijava-ui-javafx`) | `org.scijava.javafx`: the same widget set as the Swing binding, plus `FxThread` for JavaFX's application thread. `JavaFXKeys`'s key-code mapping is worth keeping when the `input`/`tool` layer arrives; `JavaFXMenuCreator` is superseded by `FxMenus`, some 40 lines against `MenuCreator` | ported |
131131
| `ui.swing.widget` | `org.scijava.swing`: number (spinner, with an optional slider or scroll bar and labelled ticks), text (field, password, area, and `BigInteger`/`BigDecimal`, which a spinner cannot step), toggle, choice, file, message, and the panel and dialog. `SpinnerBigDecimalModel`, `SpinnerBigIntegerModel`, `SpinnerTypedNumberModel` and `SpinnerNumberModelFactory` have no equivalent: `SpinnerNumberModel` already steps in the type of the value it holds, and arbitrary precision goes to the text widget. MigLayout is gone, in favor of `GridBagLayout`: one fewer dependency, and one fewer automatic module. The button, color, date, file-list and radio-choice widgets are not ported yet - each earns its place when something asks for it | ported |
132132
| `menu` (`MenuCreator`, `AbstractMenuCreator`, `MenuService`, `ShadowMenu`) | `org.scijava.command3`: `CommandInfo` is anything a user can run (a menu path being optional), `MenuTree` arranges the subset that has one, and `MenuCreator`/`Menus` are the toolkit-free walk, with `SwingMenus`, `FxMenus` and `AwtMenus` implementing it. `MenuService` has no equivalent: a menu bar is `MenuTree.of(Commands.discover(context))`, which is a line rather than a service | ported |
133-
| `ui`, `menu` | `scijava-ui3` (toolkit-agnostic contracts) and `scijava-menu` (the menu tree), with `ApplicationFrame`/`Desktop`/`StatusBar`/`ToolBar` as contracts there and implementations in the toolkit bindings. Dropped from the *core*, not from the stack — see the layering section of [migration-plan.md](migration-plan.md) | planned |
133+
| `ui` | `scijava-ui3` holds the toolkit-agnostic contracts, and the widget half is done. `ApplicationFrame`/`Desktop`/`StatusBar`/`ToolBar` are still to come, as contracts there with implementations in the toolkit bindings. Dropped from the *core*, not from the stack — see the layering section of [migration-plan.md](migration-plan.md) | planned |
134134
| `input`, `tool` | UI-agnostic facades on `scijava-events` (Phase 4) | planned |
135135
| `display` | overhauled, not ported (Phase 4) | open |
136136
| `platform`, `ui.dnd` | `scijava-desktop` modernization (Phase 4) | planned |

0 commit comments

Comments
 (0)