private GhidraFile getUserSelectedFileInDisplay() {

		File selectedFile = directoryModel.getSelectedFile();
		if (selectedFile == null) {
			return null;
		}

		return new GhidraFile(selectedFile.getAbsolutePath(), fileChooserModel.getSeparator());
	}
Gets the file currently selected in the GUI
Ghidra/Framework/Docking/src/main/java/docking/widgets/filechooser/GhidraFileChooser.java