- Timestamp:
- 2017-09-21T23:00:33+02:00 (7 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/PreferenceToggleAction.java
r12881 r12885 8 8 import org.openstreetmap.josm.Main; 9 9 import org.openstreetmap.josm.spi.preferences.PreferenceChangeEvent; 10 import org.openstreetmap.josm.data.Preferences;11 10 import org.openstreetmap.josm.spi.preferences.PreferenceChangedListener; 12 11 import org.openstreetmap.josm.data.preferences.BooleanProperty; -
trunk/src/org/openstreetmap/josm/data/Preferences.java
r12882 r12885 195 195 } 196 196 197 /** 198 * @deprecated private class is deprecated 199 */ 197 200 @Deprecated 198 201 private static class DefaultPreferenceChangeEvent implements PreferenceChangeEvent { … … 227 230 private final HashMap<String, ListenerList<org.openstreetmap.josm.spi.preferences.PreferenceChangedListener>> keyListeners = new HashMap<>(); 228 231 232 /** 233 * @deprecated deprecated private field 234 */ 229 235 @Deprecated 230 236 private final ListenerList<Preferences.PreferenceChangedListener> listenersDeprecated = ListenerList.create(); 231 237 238 /** 239 * @deprecated deprecated private field 240 */ 232 241 @Deprecated 233 242 private final HashMap<String, ListenerList<Preferences.PreferenceChangedListener>> keyListenersDeprecated = new HashMap<>(); … … 311 320 * @param listener The listener to add. 312 321 * @since 10824 313 * @deprecated use {@link #addKeyPreferenceChangeListener(java.lang.String, org.openstreetmap.josm.spi.preferences.PreferenceChangedListener)} 322 * @deprecated use 323 * {@link #addKeyPreferenceChangeListener(java.lang.String, org.openstreetmap.josm.spi.preferences.PreferenceChangedListener)} 314 324 */ 315 325 @Deprecated … … 332 342 } 333 343 344 /** 345 * @deprecated deprecated private method 346 */ 334 347 @Deprecated 335 348 private ListenerList<Preferences.PreferenceChangedListener> listenersForKeyDeprecated(String key) { … … 354 367 * @param key The preference key to listen to 355 368 * @param listener The listener to add. 356 * @deprecated use {@link #removeKeyPreferenceChangeListener(java.lang.String, org.openstreetmap.josm.spi.preferences.PreferenceChangedListener)} 369 * @deprecated use 370 * {@link #removeKeyPreferenceChangeListener(java.lang.String, org.openstreetmap.josm.spi.preferences.PreferenceChangedListener)} 357 371 */ 358 372 @Deprecated … … 364 378 365 379 protected void firePreferenceChanged(String key, Setting<?> oldValue, Setting<?> newValue) { 366 final org.openstreetmap.josm.spi.preferences.PreferenceChangeEvent evt = new org.openstreetmap.josm.spi.preferences.DefaultPreferenceChangeEvent(key, oldValue, newValue); 380 final org.openstreetmap.josm.spi.preferences.PreferenceChangeEvent evt = 381 new org.openstreetmap.josm.spi.preferences.DefaultPreferenceChangeEvent(key, oldValue, newValue); 367 382 listeners.fireEvent(listener -> listener.preferenceChanged(evt)); 368 383 … … 374 389 } 375 390 391 /** 392 * @deprecated deprecated private method 393 */ 376 394 @Deprecated 377 395 private void firePreferenceChangedDeprecated(String key, Setting<?> oldValue, Setting<?> newValue) {
Note:
See TracChangeset
for help on using the changeset viewer.