Ignore:
Timestamp:
2015-10-24T17:33:58+02:00 (9 years ago)
Author:
donvip
Message:

[josm_plugins] allow loading in headless mode for jenkins

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/CommandLine/src/CommandLine/CommandLine.java

    r31646 r31665  
    2626import java.awt.BorderLayout;
    2727import java.awt.Cursor;
     28import java.awt.GraphicsEnvironment;
    2829import java.awt.event.KeyEvent;
    2930import java.awt.event.MouseEvent;
     
    253254                commands = (new Loader(getPluginDir())).load();
    254255                if (commands.isEmpty()) {
    255                         if (JOptionPane.YES_OPTION == JOptionPane.showConfirmDialog(Main.parent,
     256                        if (!GraphicsEnvironment.isHeadless() && JOptionPane.YES_OPTION == JOptionPane.showConfirmDialog(Main.parent,
    256257                                        tr("No command has been found. Would you like to download and install default commands now?"),
    257258                                        tr("No command found"), JOptionPane.YES_NO_CANCEL_OPTION)) {
Note: See TracChangeset for help on using the changeset viewer.