@Override
			public void actionPerformed(ActionEvent e) {

				if (!textField.isChanged()) {
					// When not edited, pass the event up to the chooser so the behavior works as
					// it does elsewhere in the dialog.
					enterCallback();
					return;
				}

				if (!textField.isValid()) {
					return;
				}

				String text = textField.getText();
				File f = new File(text);
				if (f.isFile()) {
					setSelectedFile(f);
				}
				else {
					updateDirOnly(f, true);
				}
			}
Constructs a new ghidra file chooser

@param model the file chooser model
@param parent the parent component
Ghidra/Framework/Docking/src/main/java/docking/widgets/filechooser/GhidraFileChooser.java