Ignore:
Timestamp:
2018-08-12T02:21:19+02:00 (8 years ago)
Author:
Don-vip
Message:

see #15229 - deprecate Main.platform and related methods - new class PlatformManager

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/RestartAction.java

    r13843 r14138  
    1616import java.util.List;
    1717
    18 import org.openstreetmap.josm.Main;
    1918import org.openstreetmap.josm.gui.HelpAwareOptionPane.ButtonSpec;
    2019import org.openstreetmap.josm.gui.MainApplication;
     
    2423import org.openstreetmap.josm.tools.ImageProvider.ImageSizes;
    2524import org.openstreetmap.josm.tools.Logging;
     25import org.openstreetmap.josm.tools.PlatformManager;
    2626import org.openstreetmap.josm.tools.Shortcut;
    2727
     
    9292        final List<String> cmd;
    9393        // 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")) {
    9595            cmd = getAppleCommands();
    9696        } else {
     
    177177    private static String getJavaRuntime() throws IOException {
    178178        final String java = getSystemProperty("java.home") + File.separator + "bin" + File.separator +
    179                 (Main.isPlatformWindows() ? "java.exe" : "java");
     179                (PlatformManager.isPlatformWindows() ? "java.exe" : "java");
    180180        if (!new File(java).isFile()) {
    181181            throw new IOException("Unable to find suitable java runtime at "+java);
Note: See TracChangeset for help on using the changeset viewer.