Changeset 14138 in josm for trunk/src/org/openstreetmap/josm/gui/widgets/NativeFileChooser.java
- Timestamp:
- 2018-08-12T02:21:19+02:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/widgets/NativeFileChooser.java
r13206 r14138 14 14 15 15 import org.openstreetmap.josm.Main; 16 import org.openstreetmap.josm.tools.PlatformManager; 16 17 import org.openstreetmap.josm.tools.Utils; 17 18 … … 138 139 @Override 139 140 public int showOpenDialog(Component parent) { 140 boolean appleProperty = Main.isPlatformOsx() && selectionMode == JFileChooser.DIRECTORIES_ONLY;141 boolean appleProperty = PlatformManager.isPlatformOsx() && selectionMode == JFileChooser.DIRECTORIES_ONLY; 141 142 if (appleProperty) { 142 143 Utils.updateSystemProperty("apple.awt.fileDialogForDirectories", "true"); … … 176 177 // http://stackoverflow.com/questions/1224714/how-can-i-make-a-java-filedialog-accept-directories-as-its-filetype-in-os-x/1224744#1224744 177 178 // CHECKSTYLE.ON: LineLength 178 return Main.isPlatformOsx();179 return PlatformManager.isPlatformOsx(); 179 180 case JFileChooser.FILES_ONLY: 180 181 default:
Note:
See TracChangeset
for help on using the changeset viewer.