Changeset 6851 in josm for trunk/src/org/openstreetmap/josm/tools
- Timestamp:
- 2014-02-14T12:03:27+01:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/PlatformHookOsx.java
r6443 r6851 13 13 14 14 import org.openstreetmap.josm.Main; 15 import org.openstreetmap.josm.data.Preferences; 15 16 16 17 /** … … 19 20 */ 20 21 public class PlatformHookOsx extends PlatformHookUnixoid implements PlatformHook, InvocationHandler { 21 22 22 23 private static PlatformHookOsx ivhandler = new PlatformHookOsx(); 23 24 24 25 @Override 25 26 public void preStartupHook() { … … 28 29 // And will not work when one of the system independent LAFs is used. 29 30 // They just insist on painting themselves... 30 System.setProperty("apple.laf.useScreenMenuBar", "true");31 } 32 31 Preferences.updateSystemProperty("apple.laf.useScreenMenuBar", "true"); 32 } 33 33 34 @Override 34 35 public void startupHook() { … … 48 49 } 49 50 } 50 51 51 52 @Override 52 53 public Object invoke (Object proxy, Method method, Object[] args) throws Throwable { … … 69 70 return null; 70 71 } 71 72 72 73 @Override 73 74 public void openUrl(String url) throws IOException { … … 212 213 Shortcut.registerSystemShortcut("view:zoomout", tr("reserved"), KeyEvent.VK_SUBTRACT, KeyEvent.META_DOWN_MASK); // Zoom out 213 214 } 214 215 215 216 @Override 216 217 public String makeTooltip(String name, Shortcut sc) {
Note: See TracChangeset
for help on using the changeset viewer.