Changeset 13173 in josm for trunk/src/org/openstreetmap/josm/actions/mapmode/MapMode.java
- Timestamp:
- 2017-11-28T00:56:29+01:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/mapmode/MapMode.java
r12881 r13173 12 12 13 13 import org.openstreetmap.josm.actions.JosmAction; 14 import org.openstreetmap.josm.spi.preferences.PreferenceChangeEvent;15 import org.openstreetmap.josm.spi.preferences.PreferenceChangedListener;16 14 import org.openstreetmap.josm.data.osm.OsmPrimitive; 17 15 import org.openstreetmap.josm.gui.MainApplication; … … 19 17 import org.openstreetmap.josm.gui.layer.Layer; 20 18 import org.openstreetmap.josm.spi.preferences.Config; 19 import org.openstreetmap.josm.spi.preferences.PreferenceChangeEvent; 20 import org.openstreetmap.josm.spi.preferences.PreferenceChangedListener; 21 21 import org.openstreetmap.josm.tools.ImageProvider; 22 22 import org.openstreetmap.josm.tools.Shortcut; … … 65 65 66 66 /** 67 * Constructor for mapmodes without a menu68 * @param name the action's text69 * @param iconName icon filename in {@code mapmode} directory70 * @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 active74 * @deprecated use {@link #MapMode(String, String, String, Shortcut, Cursor)} instead75 */76 @Deprecated77 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 text84 * @param iconName icon filename in {@code mapmode} directory85 * @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 active88 * @deprecated use {@link #MapMode(String, String, String, Cursor)} instead89 */90 @Deprecated91 public MapMode(String name, String iconName, String tooltip, MapFrame mapFrame, Cursor cursor) {92 this(name, iconName, tooltip, cursor);93 }94 95 /**96 67 * Makes this map mode active. 97 68 */ … … 179 150 180 151 /** 181 * Update internal ctrl, alt, shift mask from given modifiers mask.182 * @param modifiers event modifiers mask183 * @deprecated use {@link #updateKeyModifiersEx} instead184 */185 @Deprecated186 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 /**193 152 * Update internal ctrl, alt, shift mask from given extended modifiers mask. 194 153 * @param modifiers event extended modifiers mask
Note:
See TracChangeset
for help on using the changeset viewer.