Ignore:
Timestamp:
2013-08-10T12:06:25+02:00 (13 years ago)
Author:
bastiK
Message:

see #6963 - converted popups to notifications for all actions in the Tools menu (TODO: Simplify Way)

File:
1 edited

Legend:

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

    r6084 r6130  
    22package org.openstreetmap.josm.actions;
    33
     4import static org.openstreetmap.josm.gui.help.HelpUtil.ht;
    45import static org.openstreetmap.josm.tools.I18n.tr;
    5 import static org.openstreetmap.josm.gui.help.HelpUtil.ht;
    66
    77import java.awt.event.ActionEvent;
     
    2525import org.openstreetmap.josm.data.osm.OsmPrimitive;
    2626import org.openstreetmap.josm.data.osm.Way;
     27import org.openstreetmap.josm.gui.Notification;
    2728import org.openstreetmap.josm.tools.Geometry;
    2829import org.openstreetmap.josm.tools.Shortcut;
     
    138139
    139140        if (nodes.size() < 4) {
    140             JOptionPane.showMessageDialog(
    141                     Main.parent,
    142                     tr("Please select at least four nodes."),
    143                     tr("Information"),
    144                     JOptionPane.INFORMATION_MESSAGE
    145             );
     141            new Notification(
     142                    tr("Please select at least four nodes."))
     143                    .setIcon(JOptionPane.INFORMATION_MESSAGE)
     144                    .setDuration(Notification.TIME_SHORT)
     145                    .show();
    146146            return;
    147147        }
Note: See TracChangeset for help on using the changeset viewer.