You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 1d8efbd
Browse filesBrowse the repository at this point in the historyBrowse files
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
Copy file name to clipboardExpand all lines: docs/migration.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -86,7 +86,7 @@ A **dropped** row is a successful outcome, not a gap.
86
86
|`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 |
87
87
|`Gateway`, `AbstractGateway`, `SciJava`| Phase 2, if retained at all | open |
88
88
|`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|
90
90
|`Validated`, `ValidityProblem`| execution layer (Phase 3) | open |
91
91
|`Optional`|`scijava-optional` (satellite repo, moves in later) | open |
92
92
@@ -130,7 +130,7 @@ A **dropped** row is a successful outcome, not a gap.
130
130
|`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 |
131
131
|`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 |
132
132
|`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 |
0 commit comments