MCPcopy Create free account
hub / github.com/FabricMC/Matcher / loadMatches

Method loadMatches

src/main/java/matcher/gui/menu/FileMenu.java:338–344  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

336 }
337
338 private void loadMatches() {
339 SelectedFile res = Gui.requestFile("Select matches file", gui.getScene().getWindow(), getMatchesLoadExtensionFilters(), true);
340 if (res == null) return;
341
342 MatchesIo.read(res.path, null, false, gui.getMatcher(), progress -> { });
343 gui.onMatchChange(EnumSet.allOf(MatchType.class));
344 }
345
346 private static List<ExtensionFilter> getMatchesLoadExtensionFilters() {
347 return Arrays.asList(new FileChooser.ExtensionFilter("Matches", "*.match"));

Callers 1

initMethod · 0.95

Calls 6

requestFileMethod · 0.95
readMethod · 0.95
getSceneMethod · 0.80
getMatcherMethod · 0.80
onMatchChangeMethod · 0.65

Tested by

no test coverage detected