Changeset 1397 in josm for trunk/src/org/openstreetmap/josm/actions/MergeNodesAction.java
- Timestamp:
- 2009-02-14T12:25:54+01:00 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/MergeNodesAction.java
r1169 r1397 38 38 import org.openstreetmap.josm.data.osm.Way; 39 39 import org.openstreetmap.josm.data.osm.visitor.CollectBackReferencesVisitor; 40 import org.openstreetmap.josm.gui.ExtendedDialog; 40 41 import org.openstreetmap.josm.tools.GBC; 41 42 import org.openstreetmap.josm.tools.Pair; … … 144 145 for (HashSet<Node> nodelinks : backlinks.values()) { 145 146 if (!nodelinks.containsAll(allNodes)) { 146 int option = JOptionPane.showConfirmDialog(Main.parent,147 tr("The selectednodeshavediffering relationmemberships. "148 + "Do you still want to merge them?"),149 tr("Merge nodes with different memberships?"),150 JOptionPane.YES_NO_OPTION);151 if (option == JOptionPane.YES_OPTION)152 break;147 int option = new ExtendedDialog(Main.parent, 148 tr("Merge nodes with different memberships?"), 149 tr("The selected nodes have differing relation memberships. " 150 + "Do you still want to merge them?"), 151 new String[] {tr("Merge Anyway"), tr("Cancel")}, 152 new String[] {"mergenodes.png", "cancel.png"}).getValue(); 153 if (option == 1) break; 153 154 return null; 154 155 } … … 191 192 192 193 if (!components.isEmpty()) { 193 int answer = JOptionPane.showConfirmDialog(Main.parent, p, tr("Enter values for all conflicts."), JOptionPane.OK_CANCEL_OPTION); 194 if (answer != JOptionPane.OK_OPTION) 194 int answer = new ExtendedDialog(Main.parent, 195 tr("Enter values for all conflicts."), 196 p, 197 new String[] {tr("Solve Conflicts"), tr("Cancel")}, 198 new String[] {"dialogs/conflict.png", "cancel.png"}).getValue(); 199 if (answer != 1) 195 200 return null; 196 201 for (Entry<String, JComboBox> e : components.entrySet())
Note:
See TracChangeset
for help on using the changeset viewer.
