if (fileChooser.getCurrentDirectory() != null) { String lastDirPath = fileChooser.getCurrentDirectory().getAbsolutePath(); if (lastDirPath != null) { getPreferences().setPropertyString(lastDirPropertyKey, lastDirPath);
fileChooser.setFileSelectionMode(dirsOnly ? JFileChooser.DIRECTORIES_ONLY : JFileChooser.FILES_ONLY); int result = fileChooser.showOpenDialog(getMainFrame()); if (fileChooser.getCurrentDirectory() != null) { String lastDirPath = fileChooser.getCurrentDirectory().getAbsolutePath(); if (lastDirPath != null) { getPreferences().setPropertyString(lastDirPropertyKey, lastDirPath);
File file = fileChooser.getSelectedFile(); final File currentDirectory = fileChooser.getCurrentDirectory(); if (currentDirectory != null) { visatApp.getPreferences().setPropertyString(
File file = fileChooser.getSelectedFile(); final File currentDirectory = fileChooser.getCurrentDirectory(); if (currentDirectory != null) { visatApp.getPreferences().setPropertyString(
/** * Called by the UI when the user hits the Approve button (labeled "Open" or "Save", by default). This can also be * called by the programmer. */ @Override public void approveSelection() { Debug.trace("BeamFileChooser: approveSelection(): selectedFile = " + getSelectedFile()); Debug.trace("BeamFileChooser: approveSelection(): currentFilename = " + getCurrentFilename()); Debug.trace("BeamFileChooser: approveSelection(): currentDirectory = " + getCurrentDirectory()); if (getDialogType() != JFileChooser.OPEN_DIALOG) { ensureSelectedFileHasValidExtension(); } super.approveSelection(); }
File file = fileChooser.getSelectedFile(); final File currentDirectory = fileChooser.getCurrentDirectory(); if (currentDirectory != null) { visatApp.getPreferences().setPropertyString(
File currentDirectory = fileChooser.getCurrentDirectory(); if (currentDirectory != null) { preferences.setPropertyString(PROPERTY_KEY_LAST_OPEN_INSITU_DIR, currentDirectory.getAbsolutePath());
String currentDir = fileChooser.getCurrentDirectory().getAbsolutePath(); if (currentDir != null) { preferences.setPropertyString(PROPERTY_KEY_LAST_OPEN_TS_DIR, currentDir);
final File currentDirectory = fileChooser.getCurrentDirectory(); if (currentDirectory != null) { visatApp.getPreferences().setPropertyString(
final File currentDirectory = fileChooser.getCurrentDirectory(); if (currentDirectory != null) { visatApp.getPreferences().setPropertyString(IMAGE_EXPORT_DIR_PREFERENCES_KEY, currentDirectory.getPath());
String currentDir = fileChooser.getCurrentDirectory().getAbsolutePath(); getPreferences().setPropertyString(PROPERTY_KEY_APP_LAST_OPEN_DIR, currentDir);