Ignore:
Timestamp:
2018-10-26T01:55:07+02:00 (5 years ago)
Author:
Don-vip
Message:

fix #16893 - DownloadOpenChangesetsTaskTest: fix for non-headless mode (patch by ris)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/io/DownloadOpenChangesetsTask.java

    r14273 r14366  
    55
    66import java.awt.Component;
    7 import java.awt.GraphicsEnvironment;
    87import java.io.IOException;
    98import java.util.Collections;
     
    6766                    + "to know the identity of the user on whose behalf you are working.");
    6867            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);
    7370            return;
    7471        }
     
    7976        }
    8077        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            );
    8984            return;
    9085        }
Note: See TracChangeset for help on using the changeset viewer.