Changeset 2017 in josm for trunk/src/org/openstreetmap/josm/actions/SplitWayAction.java
- Timestamp:
- 30.08.2009 19:07:24 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/SplitWayAction.java
r1990 r2017 32 32 import org.openstreetmap.josm.data.osm.visitor.Visitor; 33 33 import org.openstreetmap.josm.gui.DefaultNameFormatter; 34 import org.openstreetmap.josm.gui.OptionPaneUtil;35 34 import org.openstreetmap.josm.tools.Shortcut; 36 35 … … 66 65 67 66 if (!checkSelection(selection)) { 68 OptionPaneUtil.showMessageDialog(67 JOptionPane.showMessageDialog( 69 68 Main.parent, 70 69 tr("The current selection cannot be used for splitting."), … … 123 122 } 124 123 if (wayOccurenceCounter.isEmpty()) { 125 OptionPaneUtil.showMessageDialog(Main.parent,124 JOptionPane.showMessageDialog(Main.parent, 126 125 trn("The selected node is not in the middle of any way.", 127 126 "The selected nodes are not in the middle of any way.", … … 135 134 if (entry.getValue().equals(selectedNodes.size())) { 136 135 if (selectedWay != null) { 137 OptionPaneUtil.showMessageDialog(Main.parent,136 JOptionPane.showMessageDialog(Main.parent, 138 137 trn("There is more than one way using the node you selected. Please select the way also.", 139 138 "There is more than one way using the nodes you selected. Please select the way also.", … … 148 147 149 148 if (selectedWay == null) { 150 OptionPaneUtil.showMessageDialog(Main.parent,149 JOptionPane.showMessageDialog(Main.parent, 151 150 tr("The selected nodes do not share the same way."), 152 151 tr("Warning"), … … 163 162 } 164 163 if (!nds.isEmpty()) { 165 OptionPaneUtil.showMessageDialog(Main.parent,164 JOptionPane.showMessageDialog(Main.parent, 166 165 trn("The selected way does not contain the selected node.", 167 166 "The selected way does not contain all the selected nodes.", … … 233 232 && !nodeSet.contains(wayChunks.get(0).get(0))) { 234 233 if (wayChunks.size() == 2) { 235 OptionPaneUtil.showMessageDialog(234 JOptionPane.showMessageDialog( 236 235 Main.parent, 237 236 tr("You must select two or more nodes to split a circular way."), … … 248 247 if (wayChunks.size() < 2) { 249 248 if(wayChunks.get(0).get(0) == wayChunks.get(0).get(wayChunks.get(0).size()-1)) { 250 OptionPaneUtil.showMessageDialog(249 JOptionPane.showMessageDialog( 251 250 Main.parent, 252 251 tr("You must select two or more nodes to split a circular way."), … … 254 253 JOptionPane.WARNING_MESSAGE); 255 254 } else { 256 OptionPaneUtil.showMessageDialog(255 JOptionPane.showMessageDialog( 257 256 Main.parent, 258 257 tr("The way cannot be split at the selected nodes. (Hint: Select nodes in the middle of the way.)"), … … 342 341 } 343 342 if(warnmerole) { 344 OptionPaneUtil.showMessageDialog(343 JOptionPane.showMessageDialog( 345 344 Main.parent, 346 345 tr("<html>A role based relation membership was copied to all new ways.<br>You should verify this and correct it when necessary.</html>"), … … 348 347 JOptionPane.WARNING_MESSAGE); 349 348 } else if(warnme) { 350 OptionPaneUtil.showMessageDialog(349 JOptionPane.showMessageDialog( 351 350 Main.parent, 352 351 tr("<html>A relation membership was copied to all new ways.<br>You should verify this and correct it when necessary.</html>"),
Note: See TracChangeset
for help on using the changeset viewer.
