Changeset 1530 in josm
- Timestamp:
- 2009-04-17T15:25:57+02:00 (16 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/CombineWayAction.java
r1397 r1530 175 175 newWay.put(e.getKey(), combined); 176 176 } else if (e.getValue().size() > 1) { 177 if("created_by".equals(e.getKey())) 178 { 179 newWay.put("created_by", "JOSM"); 180 } 181 else 182 { 183 JComboBox c = new JComboBox(e.getValue().toArray()); 184 c.setEditable(true); 185 p.add(new JLabel(e.getKey()), GBC.std()); 186 p.add(Box.createHorizontalStrut(10), GBC.std()); 187 p.add(c, GBC.eol()); 188 components.put(e.getKey(), c); 189 } 190 } else 177 JComboBox c = new JComboBox(e.getValue().toArray()); 178 c.setEditable(true); 179 p.add(new JLabel(e.getKey()), GBC.std()); 180 p.add(Box.createHorizontalStrut(10), GBC.std()); 181 p.add(c, GBC.eol()); 182 components.put(e.getKey(), c); 183 } else { 191 184 newWay.put(e.getKey(), e.getValue().iterator().next()); 185 } 192 186 } 193 187 -
trunk/src/org/openstreetmap/josm/actions/MergeNodesAction.java
r1397 r1530 174 174 newNode.put(e.getKey(), combined); 175 175 } else if (e.getValue().size() > 1) { 176 if("created_by".equals(e.getKey())) 177 { 178 newNode.put("created_by", "JOSM"); 179 } 180 else 181 { 182 JComboBox c = new JComboBox(e.getValue().toArray()); 183 c.setEditable(true); 184 p.add(new JLabel(e.getKey()), GBC.std()); 185 p.add(Box.createHorizontalStrut(10), GBC.std()); 186 p.add(c, GBC.eol()); 187 components.put(e.getKey(), c); 188 } 189 } else 176 JComboBox c = new JComboBox(e.getValue().toArray()); 177 c.setEditable(true); 178 p.add(new JLabel(e.getKey()), GBC.std()); 179 p.add(Box.createHorizontalStrut(10), GBC.std()); 180 p.add(c, GBC.eol()); 181 components.put(e.getKey(), c); 182 } else { 190 183 newNode.put(e.getKey(), e.getValue().iterator().next()); 184 } 191 185 } 192 186 -
trunk/src/org/openstreetmap/josm/data/osm/OsmPrimitive.java
r1523 r1530 152 152 */ 153 153 public static Collection<String> getUninterestingKeys() { 154 if (uninteresting == null) {154 if (uninteresting == null) { 155 155 uninteresting = Main.pref.getCollection("tags.uninteresting", 156 156 Arrays.asList(new String[]{"source","note","comment","converted_by","created_by"})); … … 303 303 /** 304 304 * true if this object is considered "tagged". To be "tagged", an object 305 * must have one or more " non-standard" tags. "created_by" and "source"306 * are typically considered " standard" tagsand do not make an object305 * must have one or more "interesting" tags. "created_by" and "source" 306 * are typically considered "uninteresting" and do not make an object 307 307 * "tagged". 308 308 */ -
trunk/src/org/openstreetmap/josm/io/OsmApi.java
r1529 r1530 20 20 import java.util.ArrayList; 21 21 import java.util.Collection; 22 import java.util.Properties; 22 23 import java.util.StringTokenizer; 23 24 … … 264 265 changeset = new Changeset(); 265 266 Main.pleaseWaitDlg.currentAction.setText(tr("Opening changeset...")); 266 changeset.put("created_by", "JOSM"); 267 Properties sysProp = System.getProperties(); 268 Object ua = sysProp.get("http.agent"); 269 changeset.put("created_by", (ua == null) ? "JOSM" : ua.toString()); 267 270 changeset.put("comment", comment); 268 271 createPrimitive(changeset);
Note:
See TracChangeset
for help on using the changeset viewer.