Changeset 14153 in josm for trunk/src/org/openstreetmap/josm/actions/SaveActionBase.java
- Timestamp:
- 2018-08-13T02:18:54+02:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/SaveActionBase.java
r13570 r14153 15 15 import javax.swing.filechooser.FileFilter; 16 16 17 import org.openstreetmap.josm.Main;18 17 import org.openstreetmap.josm.data.PreferencesUtils; 19 18 import org.openstreetmap.josm.gui.ExtendedDialog; 19 import org.openstreetmap.josm.gui.MainApplication; 20 20 import org.openstreetmap.josm.gui.io.importexport.FileExporter; 21 21 import org.openstreetmap.josm.gui.layer.Layer; … … 107 107 if (!exported) { 108 108 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"), 110 110 JOptionPane.WARNING_MESSAGE)); 111 111 return false; … … 120 120 ((OsmDataLayer) layer).onPostSaveToFile(); 121 121 } 122 Main .parent.repaint();122 MainApplication.getMainFrame().repaint(); 123 123 } catch (IOException e) { 124 124 Logging.error(e); … … 213 213 if (file == null || file.exists()) { 214 214 return new ExtendedDialog( 215 Main .parent,215 MainApplication.getMainFrame(), 216 216 tr("Overwrite"), 217 217 tr("Overwrite"), tr("Cancel"))
Note:
See TracChangeset
for help on using the changeset viewer.