Changeset 8808 in josm


Ignore:
Timestamp:
2015-09-29T22:46:25+02:00 (5 years ago)
Author:
simon04
Message:

see #6963 - ParallelWayAction: use notification for invalid selection message

File:
1 edited

Legend:

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

    r8554 r8808  
    3232import org.openstreetmap.josm.gui.MapFrame;
    3333import org.openstreetmap.josm.gui.MapView;
     34import org.openstreetmap.josm.gui.Notification;
    3435import org.openstreetmap.josm.gui.layer.Layer;
    3536import org.openstreetmap.josm.gui.layer.MapViewPaintable;
     
    554555            return true;
    555556        } catch (IllegalArgumentException e) {
    556             // TODO: Not ideal feedback. Maybe changing the cursor could be a good mechanism?
    557             JOptionPane.showMessageDialog(
    558                     Main.parent,
    559                     tr("ParallelWayAction\n" +
    560                             "The ways selected must form a simple branchless path"),
    561                     tr("Make parallel way error"),
    562                     JOptionPane.INFORMATION_MESSAGE);
     557            new Notification(tr("ParallelWayAction\n" +
     558                    "The ways selected must form a simple branchless path"))
     559                    .setIcon(JOptionPane.INFORMATION_MESSAGE)
     560                    .show();
    563561            // The error dialog prevents us from getting the mouseReleased event
    564562            resetMouseTrackingState();
Note: See TracChangeset for help on using the changeset viewer.