Changeset 383 in josm for trunk/src/org
- Timestamp:
- 2007-10-14T00:11:21+02:00 (17 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/mapmode/SelectAction.java
r373 r383 183 183 Collection<OsmPrimitive> sel = Main.ds.getSelected(); 184 184 OsmPrimitive osm = Main.map.mapView.getNearest(e.getPoint()); 185 Collection osmColl = osm == null 186 ? Collections.emptyList() : Collections.singleton(osm); 185 Collection<OsmPrimitive> osmColl; 186 if (osm == null) { 187 osmColl = Collections.emptySet(); 188 } else { 189 osmColl = Collections.singleton(osm); 190 } 191 187 192 if (ctrl && shift) { 188 193 selectPrims(osmColl, true, false); -
trunk/src/org/openstreetmap/josm/data/osm/visitor/NameVisitor.java
r354 r383 62 62 if (name == null) { 63 63 String what = (w.get("highway") != null) ? "highway " : (w.get("railway") != null) ? "railway " : (w.get("waterway") != null) ? "waterway " : ""; 64 int nodesNo = new HashSet (w.nodes).size();64 int nodesNo = new HashSet<Node>(w.nodes).size(); 65 65 name = what + trn("{0} node", "{0} nodes", nodesNo, nodesNo); 66 66 } -
trunk/src/org/openstreetmap/josm/gui/dialogs/RelationListDialog.java
r348 r383 95 95 Relation toDelete = (Relation) displaylist.getSelectedValue(); 96 96 if (toDelete != null) { 97 Main.main.editLayer().add(new DeleteCommand(Collections.singleton(toDelete))); 97 Main.main.undoRedo.add( 98 new DeleteCommand(Collections.singleton(toDelete))); 98 99 } 99 100 } -
trunk/src/org/openstreetmap/josm/gui/preferences/PluginPreference.java
r343 r383 200 200 String enabledProp = Main.pref.get("plugins"); 201 201 if ((enabledProp == null) || ("".equals(enabledProp))) { 202 enabledPlugins = Collections. EMPTY_SET;202 enabledPlugins = Collections.emptySet(); 203 203 } 204 204 else
Note:
See TracChangeset
for help on using the changeset viewer.