Added preferences for last save directory.

This commit is contained in:
Robert Greene 2003-12-21 06:16:01 +00:00
parent c682b5a81d
commit 3289c0267a

View File

@ -1217,9 +1217,11 @@ public class DiskExplorerTab {
*/
protected void saveAs() {
FileDialog fileDialog = new FileDialog(shell, SWT.SAVE);
fileDialog.setFilterPath(userPreferences.getSaveDirectory());
fileDialog.setFileName(disks[0].getFilename());
fileDialog.setText("Please choose a location and name for your disk image:");
String fullpath = fileDialog.open();
userPreferences.setSaveDirectory(fileDialog.getFilterPath());
if (fullpath == null) {
return; // user pressed cancel
}