Changeset 15007 in josm for trunk/src/org/openstreetmap/josm/tools/PlatformHook.java
- Timestamp:
- 2019-04-21T02:49:30+02:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/PlatformHook.java
r14689 r15007 124 124 125 125 /** 126 * The makeTooltip hook will be called whenever a tooltip for127 * a menu or button is created.128 *129 * Tooltips are usually not system dependent, unless the130 * JVM is too dumb to provide correct names for all the keys.131 *132 * Some LAFs don't understand HTML, such as the OSX LAFs.133 *134 * @param name Tooltip text to display135 * @param sc Shortcut associated (to display accelerator between parenthesis)136 * @return Full tooltip text (name + accelerator)137 * @since 1084138 * @deprecated Use {@link Shortcut#makeTooltip} instead.139 */140 @Deprecated141 default String makeTooltip(String name, Shortcut sc) {142 return Shortcut.makeTooltip(name, sc != null ? sc.getKeyStroke() : null);143 }144 145 /**146 126 * Returns the default LAF to be used on this platform to look almost as a native application. 147 127 * @return The default native LAF for this platform
Note:
See TracChangeset
for help on using the changeset viewer.