Changeset 11071 in josm


Ignore:
Timestamp:
2016-10-02T11:31:09+02:00 (8 years ago)
Author:
simon04
Message:

see #13175 - Document deprecated method usage

Location:
trunk
Files:
2 edited

Legend:

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

    r11048 r11071  
    460460        Set<MapViewPaintable> invalidated = invalidatedListener.collectInvalidatedLayers();
    461461        for (Layer l: visibleLayers) {
     462            // `isChanged` for backward compatibility, see https://josm.openstreetmap.de/ticket/13175#comment:7
     463            // Layers that still implement it (plugins) will use it to tell the MapView that they have been changed.
     464            // This is why the MapView still uses it in addition to the invalidation events.
    462465            if (l.isChanged() || invalidated.contains(l)) {
    463466                break;
  • trunk/test/unit/org/openstreetmap/josm/gui/layer/GpxLayerTest.java

    r10824 r11071  
    8383        assertEquals("<html>0 tracks, 0 routes, 0 waypoints<br>Length: < 0.01 m<br></html>", layer2.getToolTipText());
    8484
    85         assertFalse(layer.isChanged());
    8685        assertTrue(layer.checkSaveConditions());
    8786        assertTrue(layer.isInfoResizable());
Note: See TracChangeset for help on using the changeset viewer.