SwingShellSuggestionInteraction
One suggestion request shared by built-in, detached Swing, and IntelliJ presentation.
Construct and call on the EDT. The owner captures handler before asynchronous work, publishes immutable candidate snapshots, and closes obsolete requests. Views own mounting, placement, and visibility; they invoke guarded operations instead of reporting acceptance. Provider completion does not close a still-usable final publication.
Acceptance leaves the active state before any view callback. The original handler and feedback destination survive reentrant UI replacement. Callback failures propagate, but cleanup completes and an edit or feedback event is never retried.
Parameters
original editing capability; owned and closed by this interaction.
original request observer. Passive closure produces no preference feedback.
Constructors
Properties
Functions
Registers an EDT observer; registration does not synthesize a state change.
Cancels an obsolete request and releases its captured editing capability.
Cancels this request without negative user feedback. Cancellation can still reject an in-progress admission.
Explicit user dismissal of the displayed publication. An empty or unselected publication produces no preference feedback.
Copies one progressive ranking at its ownership boundary. Returns false after invalidation. Selection is retained by replacement outcome across reranking when preserveSelection is true.
Removes a registered observer, including from a reentrant callback.
Selects an index only if publication still belongs to the current candidate publication.
Attempts exactly one complete edit using the original capability. A stale view action returns STALE_CONTEXT without closing a newer publication or emitting feedback.