Changeset 6125 in josm for trunk/src/org/openstreetmap/josm/actions
- Timestamp:
- 2013-08-09T16:08:30+02:00 (11 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/actions
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/ExitAction.java
r6084 r6125 28 28 @Override 29 29 public void actionPerformed(ActionEvent e) { 30 Main.exitJosm(true );30 Main.exitJosm(true, 0); 31 31 } 32 32 } -
trunk/src/org/openstreetmap/josm/actions/RestartAction.java
r6111 r6125 43 43 @Override 44 44 public void actionPerformed(ActionEvent e) { 45 // If JOSM has been started with property 'josm.restart=true' this means 46 // it is executed by a start script that can handle restart. 47 // Request for restart is indicated by exit code 9. 48 String scriptRestart = System.getProperty("josm.restart"); 49 if ("true".equals(scriptRestart)) { 50 Main.exitJosm(true, 9); 51 } 52 45 53 try { 46 54 restartJOSM(); … … 64 72 */ 65 73 public static void restartJOSM() throws IOException { 66 if (isRestartSupported() && !Main.exitJosm(false )) return;74 if (isRestartSupported() && !Main.exitJosm(false, 0)) return; 67 75 try { 68 76 // java binary
Note:
See TracChangeset
for help on using the changeset viewer.