Changeset 11988 in josm for trunk/src


Ignore:
Timestamp:
2017-04-23T21:49:05+02:00 (9 years ago)
Author:
Don-vip
Message:

improve unit test for Main.postConstructorProcessCmdLine

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/Main.java

    r11986 r11988  
    10021002         */
    10031003        List<Future<?>> downloadGps(String param) {
    1004             JOptionPane.showMessageDialog(
    1005                     Main.parent,
    1006                     tr("Parameter \"downloadgps\" does not accept file names or file URLs"),
    1007                     tr("Warning"),
    1008                     JOptionPane.WARNING_MESSAGE
    1009             );
     1004            if (!GraphicsEnvironment.isHeadless()) {
     1005                JOptionPane.showMessageDialog(
     1006                        Main.parent,
     1007                        tr("Parameter \"downloadgps\" does not accept file names or file URLs"),
     1008                        tr("Warning"),
     1009                        JOptionPane.WARNING_MESSAGE
     1010                );
     1011            }
    10101012            return Collections.emptyList();
    10111013        }
Note: See TracChangeset for help on using the changeset viewer.