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

Method requestDir

src/main/java/matcher/gui/Gui.java:619–636  ·  view source on GitHub ↗
(String title, Window parent)

Source from the content-addressed store, hash-verified

617 }
618
619 public static Path requestDir(String title, Window parent) {
620 DirectoryChooser fileChooser = new DirectoryChooser();
621
622 fileChooser.setTitle(title);
623
624 while (lastChooserFile != null && !lastChooserFile.isDirectory()) {
625 lastChooserFile = lastChooserFile.getParentFile();
626 }
627
628 if (lastChooserFile != null) fileChooser.setInitialDirectory(lastChooserFile);
629
630 File file = fileChooser.showDialog(parent);
631 if (file == null) return null;
632
633 lastChooserFile = file;
634
635 return file.toPath();
636 }
637
638 public enum SortKey {
639 Name, MappedName, MatchStatus, Similarity;

Callers 4

loadMappingsMethod · 0.95
saveMappingsMethod · 0.95
initMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected