Ignore:
Timestamp:
2018-08-13T02:18:54+02:00 (6 years ago)
Author:
Don-vip
Message:

see #15229 - deprecate Main.parent and Main itself

File:
1 edited

Legend:

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

    r13570 r14153  
    1515import javax.swing.filechooser.FileFilter;
    1616
    17 import org.openstreetmap.josm.Main;
    1817import org.openstreetmap.josm.data.PreferencesUtils;
    1918import org.openstreetmap.josm.gui.ExtendedDialog;
     19import org.openstreetmap.josm.gui.MainApplication;
    2020import org.openstreetmap.josm.gui.io.importexport.FileExporter;
    2121import org.openstreetmap.josm.gui.layer.Layer;
     
    107107            if (!exported) {
    108108                GuiHelper.runInEDT(() ->
    109                     JOptionPane.showMessageDialog(Main.parent, tr("No Exporter found! Nothing saved."), tr("Warning"),
     109                    JOptionPane.showMessageDialog(MainApplication.getMainFrame(), tr("No Exporter found! Nothing saved."), tr("Warning"),
    110110                        JOptionPane.WARNING_MESSAGE));
    111111                return false;
     
    120120                ((OsmDataLayer) layer).onPostSaveToFile();
    121121            }
    122             Main.parent.repaint();
     122            MainApplication.getMainFrame().repaint();
    123123        } catch (IOException e) {
    124124            Logging.error(e);
     
    213213        if (file == null || file.exists()) {
    214214            return new ExtendedDialog(
    215                     Main.parent,
     215                    MainApplication.getMainFrame(),
    216216                    tr("Overwrite"),
    217217                    tr("Overwrite"), tr("Cancel"))
Note: See TracChangeset for help on using the changeset viewer.