Ignore:
Timestamp:
2014-03-07T11:35:00+01:00 (10 years ago)
Author:
Don-vip
Message:

see #3764 - make UI messages copy-able (patch by simon04)

Location:
trunk/src/org/openstreetmap/josm/command
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/command/Command.java

    r6883 r6901  
    1010import java.util.Map.Entry;
    1111
    12 import javax.swing.JLabel;
    1312import javax.swing.JOptionPane;
    1413import javax.swing.JPanel;
     
    2625import org.openstreetmap.josm.gui.layer.Layer;
    2726import org.openstreetmap.josm.gui.layer.OsmDataLayer;
     27import org.openstreetmap.josm.gui.widgets.JMultilineLabel;
    2828import org.openstreetmap.josm.tools.CheckParameterUtil;
    2929
     
    210210        if (outside) {
    211211            JPanel msg = new JPanel(new GridBagLayout());
    212             msg.add(new JLabel("<html>" + outsideDialogMessage + "</html>"));
     212            msg.add(new JMultilineLabel("<html>" + outsideDialogMessage + "</html>"));
    213213            boolean answer = ConditionalOptionPaneUtil.showConfirmationDialog(
    214214                    operation + "_outside_nodes",
     
    224224        if (incomplete) {
    225225            JPanel msg = new JPanel(new GridBagLayout());
    226             msg.add(new JLabel("<html>" + incompleteDialogMessage + "</html>"));
     226            msg.add(new JMultilineLabel("<html>" + incompleteDialogMessage + "</html>"));
    227227            boolean answer = ConditionalOptionPaneUtil.showConfirmationDialog(
    228228                    operation + "_incomplete",
  • trunk/src/org/openstreetmap/josm/command/DeleteCommand.java

    r6881 r6901  
    2020
    2121import javax.swing.Icon;
    22 import javax.swing.JLabel;
    2322import javax.swing.JOptionPane;
    2423import javax.swing.JPanel;
     
    3837import org.openstreetmap.josm.gui.actionsupport.DeleteFromRelationConfirmationDialog;
    3938import org.openstreetmap.josm.gui.layer.OsmDataLayer;
     39import org.openstreetmap.josm.gui.widgets.JMultilineLabel;
    4040import org.openstreetmap.josm.tools.CheckParameterUtil;
    4141import org.openstreetmap.josm.tools.ImageProvider;
     
    464464    private static boolean confirmRelationDeletion(Collection<Relation> relations) {
    465465        JPanel msg = new JPanel(new GridBagLayout());
    466         msg.add(new JLabel("<html>" + trn(
     466        msg.add(new JMultilineLabel("<html>" + trn(
    467467                "You are about to delete {0} relation: {1}"
    468468                + "<br/>"
Note: See TracChangeset for help on using the changeset viewer.