Changeset 13727 in josm


Ignore:
Timestamp:
2018-05-10T23:45:50+02:00 (6 years ago)
Author:
Don-vip
Message:

fix #14718 - display a warning when a file cannot be found

File:
1 edited

Legend:

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

    r13691 r13727  
    3636import org.openstreetmap.josm.gui.MainApplication;
    3737import org.openstreetmap.josm.gui.MapFrame;
     38import org.openstreetmap.josm.gui.Notification;
    3839import org.openstreetmap.josm.gui.PleaseWaitRunnable;
    3940import org.openstreetmap.josm.gui.io.importexport.AllFormatsImporter;
     
    146147                        this.files.add(file);
    147148                    }
     149                } else {
     150                    String message = tr("Unable to locate file  ''{0}''.", file.getPath());
     151                    Logging.warn(message);
     152                    new Notification(message).show();
    148153                }
    149154            }
Note: See TracChangeset for help on using the changeset viewer.