Ignore:
Timestamp:
2009-07-25T23:44:19+02:00 (15 years ago)
Author:
Gubaer
Message:

replaced calls to JOptionPane.* by calls to OptionPaneUtil.*

File:
1 edited

Legend:

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

    r1820 r1847  
    3737import org.openstreetmap.josm.data.osm.Way;
    3838import org.openstreetmap.josm.gui.ExtendedDialog;
     39import org.openstreetmap.josm.gui.OptionPaneUtil;
    3940import org.openstreetmap.josm.tools.GBC;
    4041import org.openstreetmap.josm.tools.Pair;
     
    6566
    6667        if (selectedWays.size() < 2) {
    67             JOptionPane.showMessageDialog(Main.parent, tr("Please select at least two ways to combine."));
     68            OptionPaneUtil.showMessageDialog(
     69                    Main.parent,
     70                    tr("Please select at least two ways to combine."),
     71                    tr("Information"),
     72                    JOptionPane.INFORMATION_MESSAGE
     73            );
    6874            return;
    6975        }
     
    152158                nodeList = (List<Node>) secondTry;
    153159            } else {
    154                 JOptionPane.showMessageDialog(Main.parent, secondTry);
     160                OptionPaneUtil.showMessageDialog(
     161                        Main.parent,
     162                        secondTry, // FIXME: not sure whether this fits in a dialog
     163                        tr("Information"),
     164                        JOptionPane.INFORMATION_MESSAGE
     165                );
    155166                return;
    156167            }
Note: See TracChangeset for help on using the changeset viewer.