What happens to the receiver selection once a picked action has started.
More...
|
| enum | Mode |
| | What to do with the stored receiver selection after the action started. More...
|
| |
| class | Plan |
| | What the caller applies to the stored selection.
|
| |
|
|
static final Mode | CLASSIC_MODE = Mode.RESTORE_PREVIOUS |
| | The classic layout's choice: the single place to switch between restoring and clearing.
|
| |
What happens to the receiver selection once a picked action has started.
Plain Java so the decision is unit tested on the JVM, and so "clear or restore" is decided in ONE place.
-
New layout: the selection only exists while the picker is open, so it is cleared once the action has started (
Mode#CLEAR).
-
Classic: the layout keeps its tab-based selection, and only a shared file opens the picker (initially ticked with the classic selection). Owner decision 2026-10-25: afterwards the previous selection is restored (
Mode#RESTORE_PREVIOUS). To clear there too, change CLASSIC_MODE (and the one test that pins it); nothing else.
◆ modeFor()
| static Mode de.yaacc.share.AfterStartSelection.modeFor |
( |
boolean | newLayout | ) |
|
|
static |
- Parameters
-
| newLayout | true for the new layout (it owns the receiver bar) |
◆ plan()
| static Plan de.yaacc.share.AfterStartSelection.plan |
( |
Mode | mode, |
|
|
Set< String > | previous ) |
|
static |
- Parameters
-
| mode | what to do; null clears (fail safe: a picked selection is never left behind) |
| previous | the selection before the pick, may be null |
The documentation for this class was generated from the following file:
- /github/workspace/yaacc/src/main/java/de/yaacc/share/AfterStartSelection.java