Changeset 12620 in josm for trunk/src/org/openstreetmap/josm/actions/RestartAction.java
- Timestamp:
- 2017-08-22T22:26:32+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/RestartAction.java
r12273 r12620 20 20 import org.openstreetmap.josm.gui.io.SaveLayersDialog; 21 21 import org.openstreetmap.josm.tools.ImageProvider; 22 import org.openstreetmap.josm.tools.Logging; 22 23 import org.openstreetmap.josm.tools.Shortcut; 23 24 … … 59 60 restartJOSM(); 60 61 } catch (IOException ex) { 61 Main.error(ex);62 Logging.error(ex); 62 63 } 63 64 } … … 93 94 cmd = getCommands(); 94 95 } 95 Main.info("Restart "+cmd);96 if ( Main.isDebugEnabled() && Main.pref.getBoolean("restart.debug.simulation")) {97 Main.debug("Restart cancelled to get debug info");96 Logging.info("Restart "+cmd); 97 if (Logging.isDebugEnabled() && Main.pref.getBoolean("restart.debug.simulation")) { 98 Logging.debug("Restart cancelled to get debug info"); 98 99 return; 99 100 } … … 106 107 Runtime.getRuntime().exec(cmd.toArray(new String[cmd.size()])); 107 108 } catch (IOException e) { 108 Main.error(e);109 Logging.error(e); 109 110 } 110 111 } … … 138 139 if (javaCommand.endsWith(".jnlp") && jnlp == null) { 139 140 // see #11751 - jnlp on Linux 140 if (Main.isDebugEnabled()) { 141 Main.debug("Detected jnlp without jnlpx.origFilenameArg property set"); 142 } 141 Logging.debug("Detected jnlp without jnlpx.origFilenameArg property set"); 143 142 cmd.addAll(Arrays.asList(mainCommand)); 144 143 } else { … … 181 180 private static void addVMArguments(Collection<String> cmd) { 182 181 List<String> arguments = ManagementFactory.getRuntimeMXBean().getInputArguments(); 183 if (Main.isDebugEnabled()) { 184 Main.debug("VM arguments: "+arguments); 185 } 182 Logging.debug("VM arguments: {0}", arguments); 186 183 for (String arg : arguments) { 187 184 // When run from jp2launcher.exe, jnlpx.remove is true, while it is not when run from javaws
Note:
See TracChangeset
for help on using the changeset viewer.