Changeset 2017 in josm for trunk/src/org/openstreetmap/josm/actions/OrthogonalizeAction.java
- Timestamp:
- 2009-08-30T19:07:24+02:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/OrthogonalizeAction.java
r2014 r2017 23 23 import org.openstreetmap.josm.data.osm.Way; 24 24 import org.openstreetmap.josm.gui.ConditionalOptionPaneUtil; 25 import org.openstreetmap.josm.gui.OptionPaneUtil;26 25 import org.openstreetmap.josm.tools.Shortcut; 27 26 … … 60 59 if(osm instanceof Node) { 61 60 if(dirnodes.size() == 2) { 62 OptionPaneUtil.showMessageDialog(61 JOptionPane.showMessageDialog( 63 62 Main.parent, 64 63 tr("Only two nodes allowed"), … … 73 72 // Check if selection consists now only of ways 74 73 if (!(osm instanceof Way)) { 75 OptionPaneUtil.showMessageDialog(74 JOptionPane.showMessageDialog( 76 75 Main.parent, 77 76 tr("Selection must consist only of ways."), … … 85 84 Way way = (Way)osm; 86 85 if ((way.getNodesCount() < 5) || !way.isClosed()) { 87 OptionPaneUtil.showMessageDialog(86 JOptionPane.showMessageDialog( 88 87 Main.parent, 89 88 tr("Please select one or more closed ways of at least four nodes."), … … 137 136 // Check, if selection held neither none nor two nodes 138 137 if(dirnodes.size() == 1) { 139 OptionPaneUtil.showMessageDialog(138 JOptionPane.showMessageDialog( 140 139 Main.parent, 141 140 tr("Only one node selected"),
Note:
See TracChangeset
for help on using the changeset viewer.