Ignore:
Timestamp:
2019-04-21T02:49:30+02:00 (5 years ago)
Author:
Don-vip
Message:

remove deprecated API

File:
1 edited

Legend:

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

    r14689 r15007  
    124124
    125125    /**
    126       * The makeTooltip hook will be called whenever a tooltip for
    127       * a menu or button is created.
    128       *
    129       * Tooltips are usually not system dependent, unless the
    130       * 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 display
    135      * @param sc Shortcut associated (to display accelerator between parenthesis)
    136      * @return Full tooltip text (name + accelerator)
    137      * @since 1084
    138      * @deprecated Use {@link Shortcut#makeTooltip} instead.
    139       */
    140     @Deprecated
    141     default String makeTooltip(String name, Shortcut sc) {
    142         return Shortcut.makeTooltip(name, sc != null ? sc.getKeyStroke() : null);
    143     }
    144 
    145     /**
    146126     * Returns the default LAF to be used on this platform to look almost as a native application.
    147127     * @return The default native LAF for this platform
Note: See TracChangeset for help on using the changeset viewer.