Changeset 1970 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2009-08-12T15:46:05+02:00 (15 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui/dialogs
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/PropertiesDialog.java
r1951 r1970 27 27 import java.util.HashSet; 28 28 import java.util.LinkedList; 29 import java.util.List; 29 30 import java.util.Map; 30 31 import java.util.TreeMap; … … 816 817 OsmDataLayer dataLayer = (OsmDataLayer)newLayer; 817 818 selectionChanged(dataLayer.data.getSelected()); 819 } else { 820 List<OsmPrimitive> selection = Collections.emptyList(); 821 selectionChanged(selection); 818 822 } 819 823 } -
trunk/src/org/openstreetmap/josm/gui/dialogs/SelectionListDialog.java
r1814 r1970 16 16 import java.awt.event.MouseEvent; 17 17 import java.util.Collection; 18 import java.util.Collections; 18 19 import java.util.LinkedList; 20 import java.util.List; 19 21 import java.util.NoSuchElementException; 20 22 … … 377 379 OsmDataLayer dataLayer = (OsmDataLayer)newLayer; 378 380 selectionChanged(dataLayer.data.getSelected()); 379 380 } 381 381 } else { 382 List<OsmPrimitive> selection = Collections.emptyList(); 383 selectionChanged(selection); 384 } 382 385 } 383 386 384 387 public void layerAdded(Layer newLayer) { 385 388 // do nothing 386 387 389 } 388 390 389 391 public void layerRemoved(Layer oldLayer) { 390 392 // do nothing 391 392 393 } 393 394 }
Note:
See TracChangeset
for help on using the changeset viewer.