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

Method showDialog

src/main/java/gate/swing/XJFileChooser.java:75–82  ·  view source on GitHub ↗

Overridden to make sure the shared MainFrame instance is used as a parent when no parent is specified

(Component parent, String approveButtonText)

Source from the content-addressed store, hash-verified

73 * a parent when no parent is specified
74 */
75 @Override
76 public int showDialog(Component parent, String approveButtonText)
77 throws HeadlessException {
78 setSelectedFileFromPreferences();
79 return super.showDialog((parent != null) ? parent :
80 (MainFrame.getFileChooser() != null) ? MainFrame.getInstance() :
81 null, approveButtonText);
82 }
83
84 /**
85 * If possible, select the last directory/file used for the resource

Callers

nothing calls this directly

Calls 3

getFileChooserMethod · 0.95
getInstanceMethod · 0.95

Tested by

no test coverage detected