MCPcopy Create free account
hub / github.com/GateNLP/gate-core / XJFileChooser

Method XJFileChooser

src/main/java/gate/swing/XJFileChooser.java:55–69  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

53 private Map<String, String> locations;
54
55 public XJFileChooser() {
56 addHierarchyListener(new HierarchyListener() {
57 @Override
58 public void hierarchyChanged(HierarchyEvent e) {
59 if((e.getChangeFlags() & HierarchyEvent.DISPLAYABILITY_CHANGED) != 0 && !isDisplayable()) {
60 // reinitialise fields when the file chooser is hidden
61 resource = null;
62 fileName = null;
63 isFileSelected = false;
64 resetChoosableFileFilters();
65 }
66 }
67 });
68 locations = getLocations();
69 }
70
71 /**
72 * Overridden to make sure the shared MainFrame instance is used as

Callers

nothing calls this directly

Calls 1

getLocationsMethod · 0.95

Tested by

no test coverage detected