Changeset 1706 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2009-06-27T12:37:10+02:00 (15 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/SplitWayAction.java
r1609 r1706 263 263 264 264 } 265 Boolean warnmerole=false; 265 266 Boolean warnme=false; 266 267 // now copy all relations to new way also … … 268 269 if (r.deleted || r.incomplete) continue; 269 270 Relation c = null; 271 String type = ""; 270 272 int i = 0; 273 274 if(r.keys != null) 275 type = r.keys.get("type"); 271 276 272 277 for (RelationMember rm : r.members) { … … 274 279 if (rm.member == selectedWay) 275 280 { 281 if(!("route".equals(type)) && !("multipolygon".equals(type))) 282 warnme = true; 276 283 if (c == null) 277 284 c = new Relation(r); … … 284 291 em.member = wayToAdd; 285 292 em.role = rm.role; 286 if(em.role.length() > 0 )287 warnme = true;293 if(em.role.length() > 0 && !("multipolygon".equals(type))) 294 warnmerole = true; 288 295 289 296 j++; … … 302 309 commandList.add(new ChangeCommand(r, c)); 303 310 } 304 if(warnme )311 if(warnmerole) 305 312 JOptionPane.showMessageDialog(Main.parent, tr("A role based relation membership was copied to all new ways.\nYou should verify this and correct it when necessary.")); 313 else if(warnme) 314 JOptionPane.showMessageDialog(Main.parent, tr("A relation membership was copied to all new ways.\nYou should verify this and correct it when necessary.")); 306 315 307 316 NameVisitor v = new NameVisitor(); -
trunk/src/org/openstreetmap/josm/corrector/ReverseWayTagCorrector.java
r1614 r1706 37 37 "^(" + a + "|" + b + ")(" + SEPARATOR + "|$)", 38 38 Pattern.CASE_INSENSITIVE); 39 endPattern = Pattern.compile( 39 endPattern = Pattern.compile("^.*" + 40 40 SEPARATOR + "(" + a + "|" + b + ")$", 41 41 Pattern.CASE_INSENSITIVE); … … 64 64 new PrefixSuffixSwitcher[] { 65 65 new PrefixSuffixSwitcher("left", "right"), 66 new PrefixSuffixSwitcher("forward", "backward") 66 new PrefixSuffixSwitcher("forward", "backward"), 67 new PrefixSuffixSwitcher("forwards", "backwards") 67 68 }; 68 69 -
trunk/src/org/openstreetmap/josm/gui/dialogs/CommandStackDialog.java
r1228 r1706 29 29 public CommandStackDialog(final MapFrame mapFrame) { 30 30 super(tr("Command Stack"), "commandstack", tr("Open a list of all commands (undo buffer)."), 31 Shortcut.registerShortcut("subwindow:commandstack", tr("Toggle: {0}", tr("Command Stack")), KeyEvent.VK_O, Shortcut.GROUP_LAYER ), 100);31 Shortcut.registerShortcut("subwindow:commandstack", tr("Toggle: {0}", tr("Command Stack")), KeyEvent.VK_O, Shortcut.GROUP_LAYER, Shortcut.SHIFT_DEFAULT), 100); 32 32 Main.main.undoRedo.listenerCommands.add(this); 33 33 -
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/GenericRelationEditor.java
r1696 r1706 265 265 266 266 buttonPanel.add(createButton(marktr("Remove"),"remove", 267 tr("Remove the member in the current table row from this relation"), KeyEvent.VK_ M, new ActionListener() {267 tr("Remove the member in the current table row from this relation"), KeyEvent.VK_X, new ActionListener() { 268 268 public void actionPerformed(ActionEvent e) { 269 269 int[] rows = memberTable.getSelectedRows();
Note:
See TracChangeset
for help on using the changeset viewer.