Changeset 18135 in josm for trunk/src/org/openstreetmap/josm/actions/SaveActionBase.java
- Timestamp:
- 2021-08-20T14:18:17+02:00 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/SaveActionBase.java
r17628 r18135 12 12 import java.util.List; 13 13 14 import javax.swing.ImageIcon;15 14 import javax.swing.JFileChooser; 16 15 import javax.swing.JOptionPane; … … 27 26 import org.openstreetmap.josm.gui.widgets.AbstractFileChooser; 28 27 import org.openstreetmap.josm.spi.preferences.Config; 29 import org.openstreetmap.josm.tools.ImageProvider;30 28 import org.openstreetmap.josm.tools.Logging; 31 29 import org.openstreetmap.josm.tools.Shortcut; … … 137 135 return false; 138 136 139 ImageIcon icon = ImageProvider.get("save"); 140 Notification savingNotification = new Notification(tr("Saving file {0}...", file.getName())).setIcon(icon); 141 GuiHelper.runInEDT(savingNotification::show); 137 Notification savingNotification = showSavingNotification(file.getName()); 142 138 try { 143 139 boolean exported = false; … … 175 171 } 176 172 addToFileOpenHistory(file); 177 Notification doneNotification = new Notification(tr("Successfully saved file {0}", file.getName())).setIcon(icon); 178 GuiHelper.runInEDT(() -> doneNotification.replaceExisting(savingNotification)); 173 showSavedNotification(savingNotification, file.getName()); 179 174 return true; 180 175 }
Note:
See TracChangeset
for help on using the changeset viewer.