Ignore:
Timestamp:
2021-08-20T14:18:17+02:00 (3 years ago)
Author:
Don-vip
Message:

see #16709 - fix #20755 - Display a notification while/after saving session files

File:
1 edited

Legend:

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

    r17628 r18135  
    1212import java.util.List;
    1313
    14 import javax.swing.ImageIcon;
    1514import javax.swing.JFileChooser;
    1615import javax.swing.JOptionPane;
     
    2726import org.openstreetmap.josm.gui.widgets.AbstractFileChooser;
    2827import org.openstreetmap.josm.spi.preferences.Config;
    29 import org.openstreetmap.josm.tools.ImageProvider;
    3028import org.openstreetmap.josm.tools.Logging;
    3129import org.openstreetmap.josm.tools.Shortcut;
     
    137135            return false;
    138136
    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());
    142138        try {
    143139            boolean exported = false;
     
    175171        }
    176172        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());
    179174        return true;
    180175    }
Note: See TracChangeset for help on using the changeset viewer.