Changeset 12123 in josm


Ignore:
Timestamp:
2017-05-11T23:44:11+02:00 (7 years ago)
Author:
Don-vip
Message:

see #14741 - proper registration of application name on macOS

File:
1 edited

Legend:

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

    r11642 r12123  
    4040        // They just insist on painting themselves...
    4141        Utils.updateSystemProperty("apple.laf.useScreenMenuBar", "true");
     42        Utils.updateSystemProperty("apple.awt.application.name", "JOSM");
    4243    }
    4344
     
    7879    }
    7980
     81    /**
     82     * Registers Apple handlers.
     83     * @param appClass application class
     84     * @param quitHandler quit handler class
     85     * @param aboutHandler about handler class
     86     * @param openFilesHandler open file handler class
     87     * @param preferencesHandler preferences handler class
     88     * @param proxy proxy
     89     * @param appInstance application instance (instance of {@code appClass})
     90     * @throws IllegalAccessException in case of reflection error
     91     * @throws InvocationTargetException in case of reflection error
     92     * @throws NoSuchMethodException if any {@code set*Handler} method cannot be found
     93     */
    8094    protected void setHandlers(Class<?> appClass, Class<?> quitHandler, Class<?> aboutHandler,
    8195            Class<?> openFilesHandler, Class<?> preferencesHandler, Object proxy, Object appInstance)
     
    87101    }
    88102
     103    /**
     104     * Find Apple handler class in {@code com.apple.eawt} or {@code java.awt.desktop} packages.
     105     * @param className simple class name
     106     * @return class
     107     * @throws ClassNotFoundException if the handler class cannot be found
     108     */
    89109    protected Class<?> findHandlerClass(String className) throws ClassNotFoundException {
    90110        try {
Note: See TracChangeset for help on using the changeset viewer.