Changeset 5576 in josm


Ignore:
Timestamp:
2012-11-09T21:16:38+01:00 (6 years ago)
Author:
bastiK
Message:

add *.zip to FileFilter (closes #8184)

Location:
trunk/src/org/openstreetmap/josm/gui
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/dialogs/MapPaintDialog.java

    r5573 r5576  
    488488            FileFilter ff;
    489489            if (s instanceof MapCSSStyleSource) {
    490                 ff = new ExtensionFileFilter("mapcss,css", "mapcss", tr("Map paint style file (*.mapcss)"));
     490                ff = new ExtensionFileFilter("mapcss,css,zip", "mapcss", tr("Map paint style file (*.mapcss, *.zip)"));
    491491            } else {
    492                 ff = new ExtensionFileFilter("xml", "xml", tr("Map paint style file (*.xml)"));
     492                ff = new ExtensionFileFilter("xml,zip", "xml", tr("Map paint style file (*.xml, *.zip)"));
    493493            }
    494494            fcm.createFileChooser(false, null, Arrays.asList(ff, FileFilterAllFiles.getInstance()), ff, JFileChooser.FILES_ONLY)
  • trunk/src/org/openstreetmap/josm/gui/preferences/SourceEditor.java

    r5572 r5576  
    758758                FileFilter ff;
    759759                if (isMapPaint) {
    760                     ff = new ExtensionFileFilter("xml,mapcss,css", "xml", tr("Map paint style file (*.xml, *.mapcss)"));
     760                    ff = new ExtensionFileFilter("xml,mapcss,css,zip", "xml", tr("Map paint style file (*.xml, *.mapcss, *.zip)"));
    761761                } else {
    762                     ff = new ExtensionFileFilter("xml", "xml", tr("Preset definition file (*.xml)"));
     762                    ff = new ExtensionFileFilter("xml,zip", "xml", tr("Preset definition file (*.xml, *.zip)"));
    763763                }
    764764                JFileChooserManager fcm = new JFileChooserManager(true)
Note: See TracChangeset for help on using the changeset viewer.