- Timestamp:
- 2017-05-15T12:54:16+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/layer/OsmDataLayer.java
r12116 r12152 51 51 import org.openstreetmap.josm.data.DataSource; 52 52 import org.openstreetmap.josm.data.ProjectionBounds; 53 import org.openstreetmap.josm.data.SelectionChangedListener;54 53 import org.openstreetmap.josm.data.conflict.Conflict; 55 54 import org.openstreetmap.josm.data.conflict.ConflictCollection; … … 62 61 import org.openstreetmap.josm.data.gpx.WayPoint; 63 62 import org.openstreetmap.josm.data.osm.DataIntegrityProblemException; 63 import org.openstreetmap.josm.data.osm.DataSelectionListener; 64 64 import org.openstreetmap.josm.data.osm.DataSet; 65 65 import org.openstreetmap.josm.data.osm.DataSet.UploadPolicy; … … 118 118 * @since 17 119 119 */ 120 public class OsmDataLayer extends AbstractModifiableLayer implements Listener, SelectionChangedListener, HighlightUpdateListener {120 public class OsmDataLayer extends AbstractModifiableLayer implements Listener, DataSelectionListener, HighlightUpdateListener { 121 121 private static final int HATCHED_SIZE = 15; 122 122 /** Property used to know if this layer has to be saved on disk */ … … 406 406 data.addDataSetListener(MultipolygonCache.getInstance()); 407 407 data.addHighlightUpdateListener(this); 408 DataSet.addSelectionListener(this);408 data.addSelectionListener(this); 409 409 if (name != null && name.startsWith(createLayerName("")) && Character.isDigit( 410 410 (name.substring(createLayerName("").length()) + "XX" /*avoid StringIndexOutOfBoundsException*/).charAt(1))) { … … 986 986 public synchronized void destroy() { 987 987 super.destroy(); 988 DataSet.removeSelectionListener(this);988 data.removeSelectionListener(this); 989 989 data.removeHighlightUpdateListener(this); 990 990 } … … 998 998 999 999 @Override 1000 public void selectionChanged( Collection<? extends OsmPrimitive> newSelection) {1000 public void selectionChanged(SelectionChangeEvent event) { 1001 1001 invalidate(); 1002 1002 }
Note:
See TracChangeset
for help on using the changeset viewer.