Changeset 14366 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2018-10-26T01:55:07+02:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/io/DownloadOpenChangesetsTask.java
r14273 r14366 5 5 6 6 import java.awt.Component; 7 import java.awt.GraphicsEnvironment;8 7 import java.io.IOException; 9 8 import java.util.Collections; … … 67 66 + "to know the identity of the user on whose behalf you are working."); 68 67 Logging.warn(msg); 69 if (!GraphicsEnvironment.isHeadless()) { 70 JOptionPane.showMessageDialog(GuiHelper.getFrameForComponent(parent), 71 "<html>" + msg + "</html>", tr("Missing user identity"), JOptionPane.ERROR_MESSAGE); 72 } 68 JOptionPane.showMessageDialog(GuiHelper.getFrameForComponent(parent), 69 "<html>" + msg + "</html>", tr("Missing user identity"), JOptionPane.ERROR_MESSAGE); 73 70 return; 74 71 } … … 79 76 } 80 77 if (changesets.isEmpty()) { 81 if (!GraphicsEnvironment.isHeadless()) { 82 JOptionPane.showMessageDialog( 83 MainApplication.getMainFrame(), 84 tr("There are no open changesets"), 85 tr("No open changesets"), 86 JOptionPane.INFORMATION_MESSAGE 87 ); 88 } 78 JOptionPane.showMessageDialog( 79 MainApplication.getMainFrame(), 80 tr("There are no open changesets"), 81 tr("No open changesets"), 82 JOptionPane.INFORMATION_MESSAGE 83 ); 89 84 return; 90 85 }
Note:
See TracChangeset
for help on using the changeset viewer.