Ticket #2210: No0.patch
| File No0.patch, 1.4 KB (added by , 17 years ago) |
|---|
-
src/org/openstreetmap/josm/actions/HistoryInfoAction.java
32 32 final Collection<Object> sel = new LinkedList<Object>(); 33 33 new Visitor() { 34 34 public void visit(Node n) { 35 if(n.id <= 0) return; 35 36 OpenBrowser.displayUrl("http://www.openstreetmap.org/browse/node/" + n.id + "/history"); 36 37 sel.add(n); 37 38 } 38 39 39 40 public void visit(Way w) { 41 if(w.id <= 0) return; 40 42 OpenBrowser.displayUrl("http://www.openstreetmap.org/browse/way/" + w.id + "/history"); 41 43 sel.add(w); 42 44 } 43 45 44 46 public void visit(Relation e) { 47 if(e.id <= 0) return; 45 48 OpenBrowser.displayUrl("http://www.openstreetmap.org/browse/relation/" + e.id + "/history"); 46 49 sel.add(e); 47 50 } … … 54 57 55 58 if (sel.isEmpty()) { 56 59 JOptionPane.showMessageDialog(Main.parent, 57 tr("Please select at least one node, way or relation. "));60 tr("Please select at least one node, way or relation. Only already uploaded elements have a history.")); 58 61 return; 59 62 } 60 63 }
