Ignore:
Timestamp:
2016-01-29T17:39:58+01:00 (4 years ago)
Author:
bastiK
Message:

applied #12392 - default filename when saving layer (patch by kolesar)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/SaveActionBase.java

    r9510 r9670  
    156156    }
    157157
    158     private static File checkFileAndConfirmOverWrite(AbstractFileChooser fc, String extension) {
     158    /**
     159     * Checks if selected filename has the given extension. If not, adds the extension and asks for overwrite if filename exists.
     160     *
     161     * @param fc FileChooser where file was already selected
     162     * @return the {@code File} or {@code null} if the user cancelled the dialog.
     163     */
     164    public static File checkFileAndConfirmOverWrite(AbstractFileChooser fc, String extension) {
    159165        if (fc == null) return null;
    160166        File file = fc.getSelectedFile();
Note: See TracChangeset for help on using the changeset viewer.