- Timestamp:
- 2013-09-27T01:53:58+02:00 (11 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/Main.java
r6248 r6265 354 354 if (map != null) { 355 355 map.mapView.removeLayer(layer); 356 if (map != null && map.mapView.getAllLayers().isEmpty()) {356 if (map.mapView.getAllLayers().isEmpty()) { 357 357 setMapFrame(null); 358 358 } -
trunk/src/org/openstreetmap/josm/actions/JoinAreasAction.java
r6246 r6265 1449 1449 */ 1450 1450 private void stripTags(Way x) { 1451 if (x.getKeys() == null)1452 return;1453 1451 Way y = new Way(x); 1454 1452 for (String key : x.keySet()) { -
trunk/src/org/openstreetmap/josm/actions/mapmode/ParallelWayAction.java
r6246 r6265 523 523 private void clearSourceWays() { 524 524 assert (sourceWays != null); 525 if (sourceWays == null)526 return;527 525 getCurrentDataSet().clearSelection(sourceWays); 528 526 for (Way w : sourceWays) { -
trunk/src/org/openstreetmap/josm/actions/mapmode/PlayHeadDragMode.java
r5960 r6265 55 55 if ((ev.getModifiersEx() & MouseEvent.BUTTON1_DOWN_MASK) == 0) return; 56 56 Point p = ev.getPoint(); 57 if (p == null) return;58 57 if (! dragging) { 59 58 if (p.distance(mouseStart) < 3) return; -
trunk/src/org/openstreetmap/josm/actions/search/SearchCompiler.java
r6102 r6265 755 755 756 756 @Override public String toString() { 757 return "user=" + user == null ? "" : user;757 return "user=" + (user == null ? "" : user); 758 758 } 759 759 } -
trunk/src/org/openstreetmap/josm/data/validation/tests/TagChecker.java
r6264 r6265 367 367 } 368 368 369 Map<String, String> props = (p.getKeys() == null) ? Collections.<String, String>emptyMap() : p.getKeys(); 370 for (Entry<String, String> prop : props.entrySet()) { 369 for (Entry<String, String> prop : p.getKeys().entrySet()) { 371 370 String s = marktr("Key ''{0}'' invalid."); 372 371 String key = prop.getKey(); -
trunk/src/org/openstreetmap/josm/gui/MapStatus.java
r6248 r6265 282 282 // display them if the middle mouse button is pressed and 283 283 // keep them until the mouse is moved 284 if (middleMouseDown || isAtOldPosition) 285 { 284 if (middleMouseDown || isAtOldPosition) { 286 285 Collection<OsmPrimitive> osms = mv.getAllNearest(ms.mousePos, OsmPrimitive.isUsablePredicate); 287 288 if (osms == null)289 return;290 286 291 287 final JPanel c = new JPanel(new GridBagLayout()); -
trunk/src/org/openstreetmap/josm/gui/conflict/pair/tags/TagMergeItem.java
r3083 r6265 101 101 if (theirTagValue == null) { 102 102 primitive.remove(key); 103 } else if (theirTagValue != null){103 } else { 104 104 primitive.put(key, theirTagValue); 105 105 } … … 107 107 if (myTagValue == null) { 108 108 primitive.remove(key); 109 } else if (myTagValue != null){109 } else { 110 110 primitive.put(key, myTagValue); 111 111 } -
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/sort/WayConnectionTypeCalculator.java
r5630 r6265 264 264 } 265 265 266 if (refNodes == null)267 return NONE;268 269 266 for (Node n : refNodes) { 270 267 if (n == null) { -
trunk/src/org/openstreetmap/josm/gui/layer/geoimage/GeoImageLayer.java
r6248 r6265 191 191 } 192 192 193 Collection<File> children = Arrays.asList(f.listFiles(JpegFileFilter.getInstance()));193 File[] children = f.listFiles(JpegFileFilter.getInstance()); 194 194 if (children != null) { 195 195 progressMonitor.subTask(tr("Scanning directory {0}", f.getPath())); 196 196 try { 197 addRecursiveFiles(files, children);197 addRecursiveFiles(files, Arrays.asList(children)); 198 198 } catch(NullPointerException npe) { 199 199 npe.printStackTrace(); -
trunk/src/org/openstreetmap/josm/io/DefaultProxySelector.java
r6248 r6265 32 32 */ 33 33 private static boolean JVM_WILL_USE_SYSTEM_PROXIES = false; 34 {34 static { 35 35 String v = System.getProperty("java.net.useSystemProxies"); 36 36 if (v != null && v.equals(Boolean.TRUE.toString())) { -
trunk/src/org/openstreetmap/josm/io/remotecontrol/RequestProcessor.java
r6248 r6265 392 392 return null; 393 393 } 394 if (handler==null) return null;395 394 396 395 r.printf("{ \"request\" : \"%s\"", cmd);
Note:
See TracChangeset
for help on using the changeset viewer.