Ignore:
Timestamp:
2013-08-10T12:06:25+02:00 (11 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/CombineWayAction.java

    r6106 r6130  
    3434import org.openstreetmap.josm.data.preferences.BooleanProperty;
    3535import org.openstreetmap.josm.gui.ExtendedDialog;
     36import org.openstreetmap.josm.gui.Notification;
    3637import org.openstreetmap.josm.gui.conflict.tags.CombinePrimitiveResolverDialog;
    3738import org.openstreetmap.josm.gui.util.GuiHelper;
     
    6566
    6667    protected static void warnCombiningImpossible() {
    67         String msg = tr("Could not combine ways "
     68        String msg = tr("Could not combine ways<br>"
    6869                + "(They could not be merged into a single string of nodes)");
    69         JOptionPane.showMessageDialog(
    70                 Main.parent,
    71                 msg,
    72                 tr("Information"),
    73                 JOptionPane.INFORMATION_MESSAGE
    74         );
     70        new Notification(msg)
     71                .setIcon(JOptionPane.INFORMATION_MESSAGE)
     72                .show();
    7573        return;
    7674    }
     
    198196        Set<Way> selectedWays = OsmPrimitive.getFilteredSet(selection, Way.class);
    199197        if (selectedWays.size() < 2) {
    200             JOptionPane.showMessageDialog(
    201                     Main.parent,
    202                     tr("Please select at least two ways to combine."),
    203                     tr("Information"),
    204                     JOptionPane.INFORMATION_MESSAGE
    205             );
     198            new Notification(
     199                    tr("Please select at least two ways to combine."))
     200                    .setIcon(JOptionPane.INFORMATION_MESSAGE)
     201                    .setDuration(Notification.TIME_SHORT)
     202                    .show();
    206203            return;
    207204        }
Note: See TracChangeset for help on using the changeset viewer.