Changeset 6069 in josm for trunk/src/org/openstreetmap/josm/actions/SaveActionBase.java
- Timestamp:
- 2013-07-17T00:01:07+02:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/SaveActionBase.java
r6011 r6069 118 118 * Creates a new "Save" dialog for a single {@link ExtensionFileFilter} and makes it visible.<br/> 119 119 * When the user has chosen a file, checks the file extension, and confirms overwrite if needed. 120 * 120 * 121 121 * @param title The dialog title 122 122 * @param filter The dialog file filter … … 133 133 * Creates a new "Save" dialog for a given file extension and makes it visible.<br/> 134 134 * When the user has chosen a file, checks the file extension, and confirms overwrite if needed. 135 * 135 * 136 136 * @param title The dialog title 137 137 * @param extension The file extension … … 143 143 return checkFileAndConfirmOverWrite(fc, extension); 144 144 } 145 145 146 146 private static File checkFileAndConfirmOverWrite(JFileChooser fc, String extension) { 147 147 if (fc == null) return null; 148 148 File file = fc.getSelectedFile(); 149 149 150 150 FileFilter ff = fc.getFileFilter(); 151 151 if (!ff.accept(file)) {
Note:
See TracChangeset
for help on using the changeset viewer.