Changeset 6009 in josm for trunk/src/org/openstreetmap/josm
- Timestamp:
- 2013-06-16T13:39:50+02:00 (12 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 22 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/AutoScaleAction.java
r5958 r6009 235 235 } 236 236 for (OsmPrimitive osm : sel) { 237 osm. visit(v);237 osm.accept(v); 238 238 } 239 239 // increase bbox by 0.001 degrees on each side. this is required -
trunk/src/org/openstreetmap/josm/actions/UploadSelectionAction.java
r5909 r6009 204 204 // we upload modified nodes even if they aren't in the current 205 205 // selection. 206 n. visit(this);206 n.accept(this); 207 207 } 208 208 } … … 218 218 // 219 219 if (p.isNewOrUndeleted()) { 220 p. visit(this);220 p.accept(this); 221 221 } 222 222 } … … 240 240 hull = new HashSet<OsmPrimitive>(); 241 241 for (OsmPrimitive p: base) { 242 p. visit(this);242 p.accept(this); 243 243 } 244 244 return hull; -
trunk/src/org/openstreetmap/josm/command/ChangePropertyKeyCommand.java
r4918 r6009 72 72 if (objects.size() == 1) { 73 73 NameVisitor v = new NameVisitor(); 74 objects.iterator().next(). visit(v);74 objects.iterator().next().accept(v); 75 75 text += " "+tr(v.className)+" "+v.name; 76 76 } else { … … 93 93 final NameVisitor v = new NameVisitor(); 94 94 for (final OsmPrimitive osm : objects) { 95 osm. visit(v);95 osm.accept(v); 96 96 children.add(new PseudoCommand() { 97 97 @Override -
trunk/src/org/openstreetmap/josm/command/Command.java
r5824 r6009 86 86 fillModifiedData(all, all, all); 87 87 for (OsmPrimitive osm : all) { 88 osm. visit(visitor);88 osm.accept(visitor); 89 89 } 90 90 cloneMap = visitor.orig; -
trunk/src/org/openstreetmap/josm/data/osm/IPrimitive.java
r5589 r6009 31 31 void setChangesetId(int changesetId); 32 32 33 void visit(PrimitiveVisitor visitor);33 void accept(PrimitiveVisitor visitor); 34 34 String getName(); 35 35 String getLocalName(); -
trunk/src/org/openstreetmap/josm/data/osm/Node.java
r5935 r6009 196 196 197 197 @Override 198 public void visit(Visitor visitor) {198 public void accept(Visitor visitor) { 199 199 visitor.visit(this); 200 200 } 201 201 202 202 @Override 203 public void visit(PrimitiveVisitor visitor) {203 public void accept(PrimitiveVisitor visitor) { 204 204 visitor.visit(this); 205 205 } -
trunk/src/org/openstreetmap/josm/data/osm/NodeData.java
r5170 r6009 73 73 74 74 @Override 75 public void visit(PrimitiveVisitor visitor) {75 public void accept(PrimitiveVisitor visitor) { 76 76 visitor.visit(this); 77 77 } -
trunk/src/org/openstreetmap/josm/data/osm/OsmPrimitive.java
r5754 r6009 981 981 OsmPrimitive ref = (OsmPrimitive) this.referrers; 982 982 if (ref.dataSet == dataSet) { 983 ref. visit(visitor);983 ref.accept(visitor); 984 984 } 985 985 } else if (this.referrers instanceof OsmPrimitive[]) { … … 987 987 for (OsmPrimitive ref: refs) { 988 988 if (ref.dataSet == dataSet) { 989 ref. visit(visitor);989 ref.accept(visitor); 990 990 } 991 991 } … … 1027 1027 * @param visitor The visitor from which the visit() function must be called. 1028 1028 */ 1029 abstract public void visit(Visitor visitor);1029 abstract public void accept(Visitor visitor); 1030 1030 1031 1031 /** -
trunk/src/org/openstreetmap/josm/data/osm/PrimitiveDeepCopy.java
r5170 r6009 69 69 firstIteration = false; 70 70 for (RelationMember m : r.getMembers()) { 71 m.getMember(). visit(this);71 m.getMember().accept(this); 72 72 } 73 73 } … … 76 76 for (OsmPrimitive osm : primitives) { 77 77 firstIteration = true; 78 osm. visit(this);78 osm.accept(this); 79 79 } 80 80 } -
trunk/src/org/openstreetmap/josm/data/osm/Relation.java
r5676 r6009 164 164 } 165 165 166 @Override public void visit(Visitor visitor) {166 @Override public void accept(Visitor visitor) { 167 167 visitor.visit(this); 168 168 } 169 169 170 @Override public void visit(PrimitiveVisitor visitor) {170 @Override public void accept(PrimitiveVisitor visitor) { 171 171 visitor.visit(this); 172 172 } -
trunk/src/org/openstreetmap/josm/data/osm/RelationData.java
r5170 r6009 64 64 65 65 @Override 66 public void visit(PrimitiveVisitor visitor) {66 public void accept(PrimitiveVisitor visitor) { 67 67 visitor.visit(this); 68 68 } -
trunk/src/org/openstreetmap/josm/data/osm/Way.java
r5847 r6009 209 209 } 210 210 211 @Override public void visit(Visitor visitor) {211 @Override public void accept(Visitor visitor) { 212 212 visitor.visit(this); 213 213 } 214 214 215 @Override public void visit(PrimitiveVisitor visitor) {215 @Override public void accept(PrimitiveVisitor visitor) { 216 216 visitor.visit(this); 217 217 } -
trunk/src/org/openstreetmap/josm/data/osm/WayData.java
r5170 r6009 60 60 61 61 @Override 62 public void visit(PrimitiveVisitor visitor) {62 public void accept(PrimitiveVisitor visitor) { 63 63 visitor.visit(this); 64 64 } -
trunk/src/org/openstreetmap/josm/data/validation/PaintVisitor.java
r5909 r6009 122 122 public void visit(OsmPrimitive p) { 123 123 if (p.isUsable()) { 124 p. visit(this);124 p.accept(this); 125 125 } 126 126 } -
trunk/src/org/openstreetmap/josm/data/validation/Test.java
r5293 r6009 142 142 for (OsmPrimitive p : selection) { 143 143 if (p.isUsable()) { 144 p. visit(this);144 p.accept(this); 145 145 } 146 146 progressMonitor.worked(1); -
trunk/src/org/openstreetmap/josm/gui/dialogs/ConflictDialog.java
r5958 r6009 256 256 try { 257 257 for (RelationMember em : e.getMembers()) { 258 em.getMember(). visit(this);258 em.getMember().accept(this); 259 259 } 260 260 } finally { … … 268 268 continue; 269 269 } 270 conflicts.getConflictForMy((OsmPrimitive)o).getTheir(). visit(conflictPainter);270 conflicts.getConflictForMy((OsmPrimitive)o).getTheir().accept(conflictPainter); 271 271 } 272 272 } -
trunk/src/org/openstreetmap/josm/gui/dialogs/ValidatorDialog.java
r5971 r6009 520 520 public void visit(OsmPrimitive p) { 521 521 if (p.isUsable()) { 522 p. visit(this);522 p.accept(this); 523 523 } 524 524 } -
trunk/src/org/openstreetmap/josm/gui/history/HistoryBrowserModel.java
r5926 r6009 806 806 807 807 public HistoryOsmPrimitive build(OsmPrimitive primitive) { 808 primitive. visit(this);808 primitive.accept(this); 809 809 return clone; 810 810 } -
trunk/src/org/openstreetmap/josm/gui/layer/OsmDataLayer.java
r5886 r6009 455 455 final DataCountVisitor counter = new DataCountVisitor(); 456 456 for (final OsmPrimitive osm : data.allPrimitives()) { 457 osm. visit(counter);457 osm.accept(counter); 458 458 } 459 459 final JPanel p = new JPanel(new GridBagLayout()); -
trunk/src/org/openstreetmap/josm/io/GeoJSONWriter.java
r5528 r6009 99 99 { // append primitive specific 100 100 out.append("\t\"geometry\": {"); 101 p. visit(this);101 p.accept(this); 102 102 out.append("}"); 103 103 } -
trunk/src/org/openstreetmap/josm/io/OsmApi.java
r5881 r6009 288 288 osmWriter.setChangeset(changeset); 289 289 osmWriter.header(); 290 o. visit(osmWriter);290 o.accept(osmWriter); 291 291 osmWriter.footer(); 292 292 osmWriter.flush(); -
trunk/src/org/openstreetmap/josm/io/OsmChangeBuilder.java
r5589 r6009 43 43 switchMode("delete"); 44 44 osmwriter.setWithBody(false); 45 p. visit(osmwriter);45 p.accept(osmwriter); 46 46 } else { 47 47 switchMode(p.isNew() ? "create" : "modify"); 48 48 osmwriter.setWithBody(true); 49 p. visit(osmwriter);49 p.accept(osmwriter); 50 50 } 51 51 }
Note:
See TracChangeset
for help on using the changeset viewer.