Ignore:
Timestamp:
2008-07-09T11:40:18+02:00 (18 years ago)
Author:
stoecker
Message:

Save dialog now distinguish between OSM and GPX. Saving OSM layer as GPX is still possible. Closes #836

File:
1 edited

Legend:

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

    r655 r693  
    2020        }
    2121       
    22         protected static JFileChooser createAndOpenFileChooser(boolean open, boolean multiple) {
     22        protected static JFileChooser createAndOpenFileChooser(boolean open, boolean multiple, String title) {
    2323                String curDir = Main.pref.get("lastDirectory");
    2424                if (curDir.equals(""))
    2525                        curDir = ".";
    2626                JFileChooser fc = new JFileChooser(new File(curDir));
     27                if(title != null)
     28                        fc.setDialogTitle(title);
     29
    2730                fc.setMultiSelectionEnabled(multiple);
    2831                for (int i = 0; i < ExtensionFileFilter.filters.length; ++i)
Note: See TracChangeset for help on using the changeset viewer.