Changeset 14138 in josm for trunk/src/org/openstreetmap/josm/gui/widgets
- Timestamp:
- 2018-08-12T02:21:19+02:00 (6 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui/widgets
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/widgets/FileChooserManager.java
r12846 r14138 16 16 import org.openstreetmap.josm.data.preferences.BooleanProperty; 17 17 import org.openstreetmap.josm.spi.preferences.Config; 18 import org.openstreetmap.josm.tools.PlatformManager; 18 19 19 20 /** … … 33 34 public static final BooleanProperty PROP_USE_NATIVE_FILE_DIALOG = new BooleanProperty("use.native.file.dialog", 34 35 // Native dialogs do not support file filters, so do not set them as default, except for OS X where they never worked 35 Main.isPlatformOsx());36 PlatformManager.isPlatformOsx()); 36 37 37 38 private final boolean open; -
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: -
trunk/src/org/openstreetmap/josm/gui/widgets/TextContextualPopupMenu.java
r13974 r14138 24 24 import javax.swing.undo.UndoManager; 25 25 26 import org.openstreetmap.josm.Main;27 26 import org.openstreetmap.josm.spi.preferences.Config; 28 27 import org.openstreetmap.josm.tools.ImageProvider; 29 28 import org.openstreetmap.josm.tools.Logging; 29 import org.openstreetmap.josm.tools.PlatformManager; 30 30 31 31 /** … … 95 95 if (!GraphicsEnvironment.isHeadless()) { 96 96 component.getInputMap().put( 97 KeyStroke.getKeyStroke(KeyEvent.VK_Z, Main.platform.getMenuShortcutKeyMaskEx()), undoAction);97 KeyStroke.getKeyStroke(KeyEvent.VK_Z, PlatformManager.getPlatform().getMenuShortcutKeyMaskEx()), undoAction); 98 98 component.getInputMap().put( 99 KeyStroke.getKeyStroke(KeyEvent.VK_Y, Main.platform.getMenuShortcutKeyMaskEx()), redoAction);99 KeyStroke.getKeyStroke(KeyEvent.VK_Y, PlatformManager.getPlatform().getMenuShortcutKeyMaskEx()), redoAction); 100 100 } 101 101 }
Note:
See TracChangeset
for help on using the changeset viewer.