public void setLastDirectoryPreference(String newKey) {
		this.lastDirectoryPreferencKey = newKey;

		if (StringUtils.isBlank(newKey)) {
			return;
		}

		String path = Preferences.getProperty(newKey);
		if (path == null) {
			return;
		}

		File dir = new File(path);
		if (isDirectory(dir)) {
			updateDirOnly(dir, true);
		}
	}
Sets the preference key for this chooser to use when saving the last directory that was used
to successfully choose a file.
@param newKey the key
Ghidra/Framework/Docking/src/main/java/docking/widgets/filechooser/GhidraFileChooser.java