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/actions/mapmode/MapMode.java

    r12881 r13173  
    1212
    1313import org.openstreetmap.josm.actions.JosmAction;
    14 import org.openstreetmap.josm.spi.preferences.PreferenceChangeEvent;
    15 import org.openstreetmap.josm.spi.preferences.PreferenceChangedListener;
    1614import org.openstreetmap.josm.data.osm.OsmPrimitive;
    1715import org.openstreetmap.josm.gui.MainApplication;
     
    1917import org.openstreetmap.josm.gui.layer.Layer;
    2018import org.openstreetmap.josm.spi.preferences.Config;
     19import org.openstreetmap.josm.spi.preferences.PreferenceChangeEvent;
     20import org.openstreetmap.josm.spi.preferences.PreferenceChangedListener;
    2121import org.openstreetmap.josm.tools.ImageProvider;
    2222import org.openstreetmap.josm.tools.Shortcut;
     
    6565
    6666    /**
    67      * Constructor for mapmodes without a menu
    68      * @param name the action's text
    69      * @param iconName icon filename in {@code mapmode} directory
    70      * @param tooltip  a longer description of the action that will be displayed in the tooltip.
    71      * @param shortcut a ready-created shortcut object or null if you don't want a shortcut.
    72      * @param mapFrame unused but kept for plugin compatibility. Can be {@code null}
    73      * @param cursor cursor displayed when map mode is active
    74      * @deprecated use {@link #MapMode(String, String, String, Shortcut, Cursor)} instead
    75      */
    76     @Deprecated
    77     public MapMode(String name, String iconName, String tooltip, Shortcut shortcut, MapFrame mapFrame, Cursor cursor) {
    78         this(name, iconName, tooltip, shortcut, cursor);
    79     }
    80 
    81     /**
    82      * Constructor for mapmodes with a menu (no shortcut will be registered)
    83      * @param name the action's text
    84      * @param iconName icon filename in {@code mapmode} directory
    85      * @param tooltip  a longer description of the action that will be displayed in the tooltip.
    86      * @param mapFrame unused but kept for plugin compatibility. Can be {@code null}
    87      * @param cursor cursor displayed when map mode is active
    88      * @deprecated use {@link #MapMode(String, String, String, Cursor)} instead
    89      */
    90     @Deprecated
    91     public MapMode(String name, String iconName, String tooltip, MapFrame mapFrame, Cursor cursor) {
    92         this(name, iconName, tooltip, cursor);
    93     }
    94 
    95     /**
    9667     * Makes this map mode active.
    9768     */
     
    179150
    180151    /**
    181      * Update internal ctrl, alt, shift mask from given modifiers mask.
    182      * @param modifiers event modifiers mask
    183      * @deprecated use {@link #updateKeyModifiersEx} instead
    184      */
    185     @Deprecated
    186     protected void updateKeyModifiers(int modifiers) {
    187         ctrl = (modifiers & ActionEvent.CTRL_MASK) != 0;
    188         alt = (modifiers & (ActionEvent.ALT_MASK | InputEvent.ALT_GRAPH_MASK)) != 0;
    189         shift = (modifiers & ActionEvent.SHIFT_MASK) != 0;
    190     }
    191 
    192     /**
    193152     * Update internal ctrl, alt, shift mask from given extended modifiers mask.
    194153     * @param modifiers event extended modifiers mask
Note: See TracChangeset for help on using the changeset viewer.