Changeset 98 in josm for src/org/openstreetmap/josm/actions/DiskAccessAction.java
- Timestamp:
- 2006-04-25T00:11:38+02:00 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/org/openstreetmap/josm/actions/DiskAccessAction.java
r86 r98 44 44 fc.setAcceptAllFileFilterUsed(true); 45 45 46 int answer = open ? fc.showOpenDialog(Main. main) : fc.showSaveDialog(Main.main);46 int answer = open ? fc.showOpenDialog(Main.parent) : fc.showSaveDialog(Main.parent); 47 47 if (answer != JFileChooser.APPROVE_OPTION) 48 48 return null; … … 54 54 File file = fc.getSelectedFile(); 55 55 if (file == null || (file.exists() && JOptionPane.YES_OPTION != 56 JOptionPane.showConfirmDialog(Main. main, "File exists. Overwrite?", "Overwrite", JOptionPane.YES_NO_OPTION)))56 JOptionPane.showConfirmDialog(Main.parent, "File exists. Overwrite?", "Overwrite", JOptionPane.YES_NO_OPTION))) 57 57 return null; 58 58 }
Note:
See TracChangeset
for help on using the changeset viewer.
