MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / run

Method run

src/main/java/fieldbox/boxes/plugins/Variant.java:191–213  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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",

Callers

nothing calls this directly

Calls 7

switchAllToVariantMethod · 0.95
promptMethod · 0.80
printlnMethod · 0.45

Tested by

no test coverage detected