String getDisplayName(File file) {
		if (file == null) {
			return "";
		}

		if (isDisposed()) {
			return "";
		}

		if (GhidraFileChooser.MY_COMPUTER.equals(getCurrentDirectory())) {
			String str = getModel().getDescription(file);
			if (str == null || str.length() == 0) {
				str = file.getAbsolutePath();
			}
			return str;
		}
		else if (GhidraFileChooser.RECENT.equals(getCurrentDirectory())) {
			return file.getAbsolutePath() + "  ";
		}
		return getFilename(file) + "  ";
	}
Updates the given directory and selects the given file.

@param directory The directory to load and update
@param fileToSelect The file to select after updating the dir (may be null).
@param forceUpdate True signals to force the directory to update, even if it is the current
       directory
@param addToHistory True signals to add the given directory to the navigation history
Ghidra/Framework/Docking/src/main/java/docking/widgets/filechooser/GhidraFileChooser.java