Changeset 31665 in osm for applications/editors/josm/plugins/CommandLine/src
- Timestamp:
- 2015-10-24T17:33:58+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/CommandLine/src/CommandLine/CommandLine.java
r31646 r31665 26 26 import java.awt.BorderLayout; 27 27 import java.awt.Cursor; 28 import java.awt.GraphicsEnvironment; 28 29 import java.awt.event.KeyEvent; 29 30 import java.awt.event.MouseEvent; … … 253 254 commands = (new Loader(getPluginDir())).load(); 254 255 if (commands.isEmpty()) { 255 if ( JOptionPane.YES_OPTION == JOptionPane.showConfirmDialog(Main.parent,256 if (!GraphicsEnvironment.isHeadless() && JOptionPane.YES_OPTION == JOptionPane.showConfirmDialog(Main.parent, 256 257 tr("No command has been found. Would you like to download and install default commands now?"), 257 258 tr("No command found"), JOptionPane.YES_NO_CANCEL_OPTION)) {
Note:
See TracChangeset
for help on using the changeset viewer.