Ignore:
Timestamp:
2017-11-28T00:56:29+01:00 (6 years ago)
Author:
Don-vip
Message:

see #15310 - remove most of deprecated APIs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/util/GuiHelper.java

    r12748 r13173  
    2121import java.awt.Window;
    2222import java.awt.event.ActionListener;
    23 import java.awt.event.KeyEvent;
    2423import java.awt.event.MouseAdapter;
    2524import java.awt.event.MouseEvent;
     
    6665import org.openstreetmap.josm.tools.LanguageInfo;
    6766import org.openstreetmap.josm.tools.Logging;
    68 import org.openstreetmap.josm.tools.PlatformHook;
    6967import org.openstreetmap.josm.tools.bugreport.BugReport;
    7068import org.openstreetmap.josm.tools.bugreport.ReportedException;
     
    462460
    463461    /**
    464      * Returns extended modifier key used as the appropriate accelerator key for menu shortcuts.
    465      * It is advised everywhere to use {@link Toolkit#getMenuShortcutKeyMask()} to get the cross-platform modifier, but:
    466      * <ul>
    467      * <li>it returns KeyEvent.CTRL_MASK instead of KeyEvent.CTRL_DOWN_MASK. We used the extended
    468      *    modifier for years, and Oracle recommends to use it instead, so it's best to keep it</li>
    469      * <li>the method throws a HeadlessException ! So we would need to handle it for unit tests anyway</li>
    470      * </ul>
    471      * @return extended modifier key used as the appropriate accelerator key for menu shortcuts
    472      * @since 7539
    473      * @deprecated to be removed end of 2017. Use {@link PlatformHook#getMenuShortcutKeyMaskEx()} instead
    474      */
    475     @Deprecated
    476     public static int getMenuShortcutKeyMaskEx() {
    477         return Main.isPlatformOsx() ? KeyEvent.META_DOWN_MASK : KeyEvent.CTRL_DOWN_MASK;
    478     }
    479 
    480     /**
    481462     * Sets a global font for all UI, replacing default font of current look and feel.
    482463     * @param name Font name. It is up to the caller to make sure the font exists
Note: See TracChangeset for help on using the changeset viewer.