Changeset 12123 in josm
- Timestamp:
- 2017-05-11T23:44:11+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/PlatformHookOsx.java
r11642 r12123 40 40 // They just insist on painting themselves... 41 41 Utils.updateSystemProperty("apple.laf.useScreenMenuBar", "true"); 42 Utils.updateSystemProperty("apple.awt.application.name", "JOSM"); 42 43 } 43 44 … … 78 79 } 79 80 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 */ 80 94 protected void setHandlers(Class<?> appClass, Class<?> quitHandler, Class<?> aboutHandler, 81 95 Class<?> openFilesHandler, Class<?> preferencesHandler, Object proxy, Object appInstance) … … 87 101 } 88 102 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 */ 89 109 protected Class<?> findHandlerClass(String className) throws ClassNotFoundException { 90 110 try {
Note:
See TracChangeset
for help on using the changeset viewer.