Ignore:
Timestamp:
2014-02-14T12:03:27+01:00 (9 years ago)
Author:
Don-vip
Message:

see #9710 - enable OAuth debug output with --debug + single endpoint to change system properties

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/PlatformHookOsx.java

    r6443 r6851  
    1313
    1414import org.openstreetmap.josm.Main;
     15import org.openstreetmap.josm.data.Preferences;
    1516
    1617/**
     
    1920 */
    2021public class PlatformHookOsx extends PlatformHookUnixoid implements PlatformHook, InvocationHandler {
    21    
     22
    2223    private static PlatformHookOsx ivhandler = new PlatformHookOsx();
    23    
     24
    2425    @Override
    2526    public void preStartupHook() {
     
    2829        // And will not work when one of the system independent LAFs is used.
    2930        // They just insist on painting themselves...
    30         System.setProperty("apple.laf.useScreenMenuBar", "true");
    31     }
    32    
     31        Preferences.updateSystemProperty("apple.laf.useScreenMenuBar", "true");
     32    }
     33
    3334    @Override
    3435    public void startupHook() {
     
    4849        }
    4950    }
    50    
     51
    5152    @Override
    5253    public Object invoke (Object proxy, Method method, Object[] args) throws Throwable {
     
    6970        return null;
    7071    }
    71    
     72
    7273    @Override
    7374    public void openUrl(String url) throws IOException {
     
    212213        Shortcut.registerSystemShortcut("view:zoomout", tr("reserved"), KeyEvent.VK_SUBTRACT, KeyEvent.META_DOWN_MASK); // Zoom out
    213214    }
    214    
     215
    215216    @Override
    216217    public String makeTooltip(String name, Shortcut sc) {
Note: See TracChangeset for help on using the changeset viewer.