Ignore:
Timestamp:
2017-08-25T01:37:31+02:00 (9 years ago)
Author:
Don-vip
Message:

see #15182 - deprecate shortcut handling and mapframe listener methods in Main. Replacement: same methods in gui.MainApplication

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/widgets/DisableShortcutsOnFocusGainedTextField.java

    r8929 r12639  
    1717import org.openstreetmap.josm.Main;
    1818import org.openstreetmap.josm.actions.JosmAction;
     19import org.openstreetmap.josm.gui.MainApplication;
    1920import org.openstreetmap.josm.tools.Pair;
    2021import org.openstreetmap.josm.tools.Shortcut;
     
    147148            KeyStroke ks = shortcut.getKeyStroke();
    148149            if (hasToBeDisabled(ks)) {
    149                 Action action = Main.getRegisteredActionShortcut(shortcut);
     150                Action action = MainApplication.getRegisteredActionShortcut(shortcut);
    150151                if (action != null) {
    151                     Main.unregisterActionShortcut(action, shortcut);
     152                    MainApplication.unregisterActionShortcut(action, shortcut);
    152153                    unregisteredActionShortcuts.add(new Pair<>(action, shortcut));
    153154                }
     
    182183    protected void restoreActionShortcuts() {
    183184        for (Pair<Action, Shortcut> p : unregisteredActionShortcuts) {
    184             Main.registerActionShortcut(p.a, p.b);
     185            MainApplication.registerActionShortcut(p.a, p.b);
    185186        }
    186187        unregisteredActionShortcuts.clear();
Note: See TracChangeset for help on using the changeset viewer.