Changeset 6132 in josm
- Timestamp:
- 2013-08-10T17:12:42+02:00 (11 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/NotificationManager.java
r6131 r6132 25 25 26 26 import javax.swing.AbstractAction; 27 import javax.swing.Action;28 27 import javax.swing.BorderFactory; 29 28 import javax.swing.GroupLayout; -
trunk/src/org/openstreetmap/josm/gui/io/UploadPrimitivesTask.java
r6084 r6132 37 37 import org.openstreetmap.josm.tools.ImageProvider; 38 38 import org.xml.sax.SAXException; 39 40 import org.openstreetmap.josm.gui.Notification; 39 41 40 42 /** … … 328 330 UploadDialog.getUploadDialog().setSelectedChangesetForNextUpload(changeset); 329 331 } 330 if (lastException == null) 332 if (lastException == null) { 333 new Notification( 334 "<h3>" + tr("Upload successful!") + "</h3>") 335 .setIcon(ImageProvider.get("misc", "check_large")) 336 .show(); 331 337 return; 338 } 332 339 if (lastException instanceof ChangesetClosedException) { 333 340 ChangesetClosedException e = (ChangesetClosedException)lastException; -
trunk/src/org/openstreetmap/josm/io/NMEAImporter.java
r6093 r6132 9 9 10 10 import javax.swing.JOptionPane; 11 import javax.swing.SwingUtilities; 11 12 12 13 import org.openstreetmap.josm.Main; 13 14 import org.openstreetmap.josm.actions.ExtensionFileFilter; 14 15 import org.openstreetmap.josm.gui.HelpAwareOptionPane; 16 import org.openstreetmap.josm.gui.Notification; 15 17 import org.openstreetmap.josm.gui.layer.GpxLayer; 16 18 import org.openstreetmap.josm.gui.layer.markerlayer.MarkerLayer; … … 62 64 msg.append("</html>"); 63 65 if (success) { 64 HelpAwareOptionPane.showMessageDialogInEDT( 65 Main.parent, 66 msg.toString(), 67 tr("NMEA import success"), 68 JOptionPane.INFORMATION_MESSAGE, null); 66 SwingUtilities.invokeLater(new Runnable() { 67 @Override 68 public void run() { 69 new Notification( 70 "<h3>" + tr("NMEA import success:") + "</h3>" + msg.toString()) 71 .setIcon(JOptionPane.INFORMATION_MESSAGE) 72 .show(); 73 } 74 }); 69 75 } else { 70 76 HelpAwareOptionPane.showMessageDialogInEDT(
Note:
See TracChangeset
for help on using the changeset viewer.