Changeset 734 in josm
- Timestamp:
- 2008-07-24T08:41:19+02:00 (17 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/actions
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/CombineWayAction.java
r699 r734 171 171 newWay.put(e.getKey(), combined); 172 172 } else if (e.getValue().size() > 1) { 173 JComboBox c = new JComboBox(e.getValue().toArray()); 174 c.setEditable(true); 175 p.add(new JLabel(e.getKey()), GBC.std()); 176 p.add(Box.createHorizontalStrut(10), GBC.std()); 177 p.add(c, GBC.eol()); 178 components.put(e.getKey(), c); 173 if("created_by".equals(e.getKey())) 174 { 175 newWay.put("created_by", "JOSM"); 176 } 177 else 178 { 179 JComboBox c = new JComboBox(e.getValue().toArray()); 180 c.setEditable(true); 181 p.add(new JLabel(e.getKey()), GBC.std()); 182 p.add(Box.createHorizontalStrut(10), GBC.std()); 183 p.add(c, GBC.eol()); 184 components.put(e.getKey(), c); 185 } 179 186 } else 180 187 newWay.put(e.getKey(), e.getValue().iterator().next()); -
trunk/src/org/openstreetmap/josm/actions/MergeNodesAction.java
r627 r734 171 171 newNode.put(e.getKey(), combined); 172 172 } else if (e.getValue().size() > 1) { 173 JComboBox c = new JComboBox(e.getValue().toArray()); 174 c.setEditable(true); 175 p.add(new JLabel(e.getKey()), GBC.std()); 176 p.add(Box.createHorizontalStrut(10), GBC.std()); 177 p.add(c, GBC.eol()); 178 components.put(e.getKey(), c); 173 if("created_by".equals(e.getKey())) 174 { 175 newNode.put("created_by", "JOSM"); 176 } 177 else 178 { 179 JComboBox c = new JComboBox(e.getValue().toArray()); 180 c.setEditable(true); 181 p.add(new JLabel(e.getKey()), GBC.std()); 182 p.add(Box.createHorizontalStrut(10), GBC.std()); 183 p.add(c, GBC.eol()); 184 components.put(e.getKey(), c); 185 } 179 186 } else 180 187 newNode.put(e.getKey(), e.getValue().iterator().next());
Note:
See TracChangeset
for help on using the changeset viewer.