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/CreateCircleAction.java

    r1846 r1847  
    2323import org.openstreetmap.josm.data.osm.Way;
    2424import org.openstreetmap.josm.data.osm.visitor.CollectBackReferencesVisitor;
     25import org.openstreetmap.josm.gui.OptionPaneUtil;
    2526import org.openstreetmap.josm.tools.Shortcut;
    2627
     
    202203
    203204            if (sUnder == 0) {
    204                 JOptionPane.showMessageDialog(Main.parent, tr("Those nodes are not in a circle."));
     205                OptionPaneUtil.showMessageDialog(
     206                        Main.parent,
     207                        tr("Those nodes are not in a circle. Aborting."),
     208                        tr("Warning"),
     209                        JOptionPane.WARNING_MESSAGE
     210                );
    205211                return;
    206212            }
     
    261267
    262268        } else {
    263             JOptionPane.showMessageDialog(Main.parent, tr("Please select exactly two or three nodes or one way with exactly two or three nodes."));
     269            OptionPaneUtil.showMessageDialog(
     270                    Main.parent,
     271                    tr("Please select exactly two or three nodes or one way with exactly two or three nodes."),
     272                    tr("Information"),
     273                    JOptionPane.INFORMATION_MESSAGE
     274            );
    264275            return;
    265276        }
Note: See TracChangeset for help on using the changeset viewer.