Changeset 9944 in josm


Ignore:
Timestamp:
2016-03-06T23:37:30+01:00 (4 years ago)
Author:
Don-vip
Message:

mapmode: add basic unit tests

Location:
trunk
Files:
6 added
1 edited

Legend:

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

    r9067 r9944  
    8181            noteData.createNote(latlon, input);
    8282        } else {
    83             Notification notification = new Notification(tr("You must enter a comment to create a new note"));
    84             notification.setIcon(JOptionPane.WARNING_MESSAGE);
    85             notification.show();
     83            new Notification(tr("You must enter a comment to create a new note")).setIcon(JOptionPane.WARNING_MESSAGE).show();
    8684        }
    8785    }
Note: See TracChangeset for help on using the changeset viewer.