Ignore:
Timestamp:
2009-02-14T12:25:54+01:00 (17 years ago)
Author:
stoecker
Message:

apply patches from xeen for #1977.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/MergeNodesAction.java

    r1169 r1397  
    3838import org.openstreetmap.josm.data.osm.Way;
    3939import org.openstreetmap.josm.data.osm.visitor.CollectBackReferencesVisitor;
     40import org.openstreetmap.josm.gui.ExtendedDialog;
    4041import org.openstreetmap.josm.tools.GBC;
    4142import org.openstreetmap.josm.tools.Pair;
     
    144145        for (HashSet<Node> nodelinks : backlinks.values()) {
    145146            if (!nodelinks.containsAll(allNodes)) {
    146                 int option = JOptionPane.showConfirmDialog(Main.parent,
    147                     tr("The selected nodes have differing relation memberships.  "
    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;
    153154                return null;
    154155            }
     
    191192
    192193        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)
    195200                return null;
    196201            for (Entry<String, JComboBox> e : components.entrySet())
Note: See TracChangeset for help on using the changeset viewer.