Ignore:
Timestamp:
2018-08-12T02:21:19+02:00 (6 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/gui/widgets/NativeFileChooser.java

    r13206 r14138  
    1414
    1515import org.openstreetmap.josm.Main;
     16import org.openstreetmap.josm.tools.PlatformManager;
    1617import org.openstreetmap.josm.tools.Utils;
    1718
     
    138139    @Override
    139140    public int showOpenDialog(Component parent) {
    140         boolean appleProperty = Main.isPlatformOsx() && selectionMode == JFileChooser.DIRECTORIES_ONLY;
     141        boolean appleProperty = PlatformManager.isPlatformOsx() && selectionMode == JFileChooser.DIRECTORIES_ONLY;
    141142        if (appleProperty) {
    142143            Utils.updateSystemProperty("apple.awt.fileDialogForDirectories", "true");
     
    176177            // http://stackoverflow.com/questions/1224714/how-can-i-make-a-java-filedialog-accept-directories-as-its-filetype-in-os-x/1224744#1224744
    177178            // CHECKSTYLE.ON: LineLength
    178             return Main.isPlatformOsx();
     179            return PlatformManager.isPlatformOsx();
    179180        case JFileChooser.FILES_ONLY:
    180181        default:
Note: See TracChangeset for help on using the changeset viewer.