Changeset 108 in josm for src/org/openstreetmap
- Timestamp:
- 2006-07-10T23:02:15+02:00 (19 years ago)
- Location:
- src/org/openstreetmap/josm/gui
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
src/org/openstreetmap/josm/gui/MapView.java
r104 r108 183 183 for (LayerChangeListener l : listeners) 184 184 l.layerRemoved(layer); 185 if (layer == editLayer) 185 if (layer == editLayer) { 186 186 editLayer = null; 187 Main.ds.clearSelection(); 188 } 187 189 } 188 190 -
src/org/openstreetmap/josm/gui/PleaseWaitRunnable.java
r104 r108 39 39 private boolean closeDialogCalled = false; 40 40 41 protected final JLabel currentAction = new JLabel(tr("Contact OSM server..."));41 protected final JLabel currentAction = new JLabel(tr("Contacting the OSM server...")); 42 42 protected final BoundedRangeModel progress = progressBar.getModel(); 43 43 -
src/org/openstreetmap/josm/gui/dialogs/PropertiesDialog.java
r104 r108 136 136 137 137 JPanel p = new JPanel(new BorderLayout()); 138 p.add(new JLabel(trn("<html>This will change {0} object.<br> br>Please select a key",139 "<html>This will change {0} objects.<br> br>Please select a key",138 p.add(new JLabel(trn("<html>This will change {0} object.<br><br>Please select a key", 139 "<html>This will change {0} objects.<br><br>Please select a key", 140 140 sel.size(),sel.size())), 141 141 BorderLayout.NORTH); -
src/org/openstreetmap/josm/gui/dialogs/SelectionListDialog.java
r104 r108 17 17 import java.net.URL; 18 18 import java.net.URLConnection; 19 import java.util.Arrays; 19 20 import java.util.Collection; 20 21 import java.util.LinkedList; 21 22 import java.util.Map; 22 import java.util.TreeSet;23 23 24 24 import javax.swing.ButtonGroup; … … 216 216 */ 217 217 public void selectionChanged(Collection<? extends OsmPrimitive> newSelection) { 218 TreeSet<OsmPrimitive> sortedSel = new TreeSet<OsmPrimitive>(newSelection);219 218 if (list == null) 220 219 return; // selection changed may be received in base class constructor before init 221 list.setSize(sortedSel.size()); 220 OsmPrimitive[] selArr = new OsmPrimitive[newSelection.size()]; 221 selArr = newSelection.toArray(selArr); 222 Arrays.sort(selArr); 223 list.setSize(selArr.length); 222 224 int i = 0; 223 for (OsmPrimitive osm : s ortedSel)225 for (OsmPrimitive osm : selArr) 224 226 list.setElementAt(osm, i++); 225 227 }
Note:
See TracChangeset
for help on using the changeset viewer.