Changeset 11093 in josm for trunk/src/org/openstreetmap/josm/actions
- Timestamp:
- 2016-10-07T21:55:54+02:00 (8 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/actions
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/DeleteLayerAction.java
r10436 r11093 10 10 11 11 import org.openstreetmap.josm.Main; 12 import org.openstreetmap.josm.gui.io.SaveLayersDialog; 12 13 import org.openstreetmap.josm.gui.layer.Layer; 13 14 import org.openstreetmap.josm.tools.Shortcut; … … 34 35 return; 35 36 } 36 if (! Main.saveUnsavedModifications(Collections.singletonList(activeLayer), false)) {37 if (!SaveLayersDialog.saveUnsavedModifications(Collections.singletonList(activeLayer), SaveLayersDialog.Reason.DELETE)) { 37 38 return; 38 39 } -
trunk/src/org/openstreetmap/josm/actions/ExitAction.java
r6380 r11093 28 28 @Override 29 29 public void actionPerformed(ActionEvent e) { 30 Main.exitJosm(true, 0 );30 Main.exitJosm(true, 0, null); 31 31 } 32 32 } -
trunk/src/org/openstreetmap/josm/actions/RestartAction.java
r10212 r11093 17 17 import org.openstreetmap.josm.Main; 18 18 import org.openstreetmap.josm.gui.HelpAwareOptionPane.ButtonSpec; 19 import org.openstreetmap.josm.gui.io.SaveLayersDialog; 19 20 import org.openstreetmap.josm.tools.ImageProvider; 20 21 import org.openstreetmap.josm.tools.Shortcut; … … 59 60 String scriptRestart = System.getProperty("josm.restart"); 60 61 if ("true".equals(scriptRestart)) { 61 Main.exitJosm(true, 9 );62 Main.exitJosm(true, 9, SaveLayersDialog.Reason.RESTART); 62 63 } 63 64 … … 83 84 */ 84 85 public static void restartJOSM() throws IOException { 85 if (isRestartSupported() && !Main.exitJosm(false, 0 )) return;86 if (isRestartSupported() && !Main.exitJosm(false, 0, SaveLayersDialog.Reason.RESTART)) return; 86 87 final List<String> cmd; 87 88 // special handling for OSX .app package
Note:
See TracChangeset
for help on using the changeset viewer.