@Override
	public void setValue(Object value) {
		if (value == null) {
			currentFileValue = null;
			textField.setText("");
		}
		else if (value instanceof File) {
			currentFileValue = (File) value;
			textField.setText(currentFileValue.getAbsolutePath());
		}
		else if (value instanceof String s) {
			setAsText(s);
		}
	}
Bean editor to show a text field and a browse button to bring
up a File Chooser dialog. This editor is created as a result of
get/setFilename() on Options.
Ghidra/Framework/Docking/src/main/java/docking/options/editor/FileChooserEditor.java