Changeset 20142 in osm for applications/editors


Ignore:
Timestamp:
2010-02-25T12:56:02+01:00 (14 years ago)
Author:
bastik
Message:

'validator: fixed josm bug 4594'

Location:
applications/editors/josm/plugins/validator
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/validator/build.xml

    r19485 r20142  
    2626          ** update before publishing
    2727        -->
    28         <property name="commit.message" value="Changed the constructor signature of the plugin main class" />
     28        <property name="commit.message" value="validator: fixed josm bug 4594" />
    2929        <property name="plugin.main.version" value="2830" />
    3030
  • applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/tests/DuplicateNode.java

    r19616 r20142  
    33import static org.openstreetmap.josm.tools.I18n.tr;
    44
     5import java.awt.GridBagLayout;
    56import java.awt.geom.Area;
    67import java.util.ArrayList;
     
    1415import java.util.Map.Entry;
    1516
     17import javax.swing.JLabel;
    1618import javax.swing.JOptionPane;
     19import javax.swing.JPanel;
    1720
    1821import org.openstreetmap.josm.Main;
     
    151154                    Node n = (Node) osm;
    152155                    if (!a.contains(n.getCoor())) {
     156                        JPanel msg = new JPanel(new GridBagLayout());
     157                        msg.add(new JLabel(
     158                                "<html>" +
     159                                // leave message in one tr() as there is a grammatical
     160                                // connection.
     161                                tr("You are about to delete nodes outside of the area you have downloaded."
     162                                        + "<br>"
     163                                        + "This can cause problems because other objects (that you do not see) might use them."
     164                                        + "<br>" + "Do you really want to delete?") + "</html>"));
     165
    153166                        return ConditionalOptionPaneUtil.showConfirmationDialog(
    154167                            "delete_outside_nodes",
    155168                            Main.parent,
    156                             tr("You are about to delete nodes outside of the area you have downloaded." +
    157                                                 "<br>" +
    158                                                 "This can cause problems because other objects (that you don't see) might use them." +
    159                                                 "<br>" +
    160                                         "Do you really want to delete?") + "</html>",
    161                             tr("Confirmation"),
     169                            msg,
     170                            tr("Delete confirmation"),
    162171                            JOptionPane.YES_NO_OPTION,
    163172                            JOptionPane.QUESTION_MESSAGE,
Note: See TracChangeset for help on using the changeset viewer.