Changeset 14138 in josm for trunk/src/org/openstreetmap/josm/actions/RestartAction.java
- Timestamp:
- 2018-08-12T02:21:19+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/RestartAction.java
r13843 r14138 16 16 import java.util.List; 17 17 18 import org.openstreetmap.josm.Main;19 18 import org.openstreetmap.josm.gui.HelpAwareOptionPane.ButtonSpec; 20 19 import org.openstreetmap.josm.gui.MainApplication; … … 24 23 import org.openstreetmap.josm.tools.ImageProvider.ImageSizes; 25 24 import org.openstreetmap.josm.tools.Logging; 25 import org.openstreetmap.josm.tools.PlatformManager; 26 26 import org.openstreetmap.josm.tools.Shortcut; 27 27 … … 92 92 final List<String> cmd; 93 93 // special handling for OSX .app package 94 if ( Main.isPlatformOsx() && getSystemProperty("java.library.path").contains("/JOSM.app/Contents/MacOS")) {94 if (PlatformManager.isPlatformOsx() && getSystemProperty("java.library.path").contains("/JOSM.app/Contents/MacOS")) { 95 95 cmd = getAppleCommands(); 96 96 } else { … … 177 177 private static String getJavaRuntime() throws IOException { 178 178 final String java = getSystemProperty("java.home") + File.separator + "bin" + File.separator + 179 ( Main.isPlatformWindows() ? "java.exe" : "java");179 (PlatformManager.isPlatformWindows() ? "java.exe" : "java"); 180 180 if (!new File(java).isFile()) { 181 181 throw new IOException("Unable to find suitable java runtime at "+java);
Note:
See TracChangeset
for help on using the changeset viewer.
