()
| 189 | } |
| 190 | |
| 191 | @Override |
| 192 | public void run() { |
| 193 | Map<Pair<String, String>, Runnable> m = new LinkedHashMap<>(); |
| 194 | |
| 195 | fillInExistingVariants(m, x -> { |
| 196 | switchAllToVariant(x); |
| 197 | }); |
| 198 | |
| 199 | p.prompt("Switch to...", m, new RemoteEditor.ExtendedCommand() { |
| 200 | |
| 201 | String alt = ""; |
| 202 | |
| 203 | @Override |
| 204 | public void run() { |
| 205 | switchAllToVariant(this.alt); |
| 206 | } |
| 207 | |
| 208 | @Override |
| 209 | public void begin(RemoteEditor.SupportsPrompt prompt, String alternativeChosen) { |
| 210 | this.alt = alternativeChosen; |
| 211 | } |
| 212 | }); |
| 213 | } |
| 214 | }); |
| 215 | |
| 216 | m.put(new Pair<>("Copy to variant", |
nothing calls this directly
no test coverage detected