Changeset 31665 in osm for applications/editors
- Timestamp:
- 2015-10-24T17:33:58+02:00 (9 years ago)
- Location:
- applications/editors/josm/plugins
- Files:
-
- 5 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)) { -
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/CadastrePlugin.java
r31646 r31665 5 5 import static org.openstreetmap.josm.io.session.SessionReader.registerSessionLayerImporter; 6 6 import static org.openstreetmap.josm.io.session.SessionWriter.registerSessionLayerExporter; 7 import static org.openstreetmap.josm.tools.I18n.marktr;8 7 import static org.openstreetmap.josm.tools.I18n.tr; 9 8 … … 283 282 } 284 283 refreshLayersURL(); 285 286 /* TODO: remove in july 2012 */287 if(!Main.pref.getBoolean("cadastregrab.shortcut.warn", false))288 {289 Main.pref.put("cadastregrab.shortcut.warn", true);290 JOptionPane.showMessageDialog(Main.parent,291 tr("Plugin cadastre-fr used the key shortcut F11 for grabbing,\n"+292 "which is now allocated for full-screen switch.\n"+293 "The new grabbing key is F10, but you can change the key\n" +294 "in the shortcut settings if you want."));295 }296 284 refreshMenu(); 297 285 } -
applications/editors/josm/plugins/czechaddress/src/org/openstreetmap/josm/plugins/czechaddress/CzechAddressPlugin.java
r31646 r31665 4 4 import static org.openstreetmap.josm.tools.I18n.tr; 5 5 6 import java.awt.GraphicsEnvironment; 6 7 import java.awt.event.KeyEvent; 7 8 import java.io.IOException; … … 90 91 addStatusListener(this); 91 92 92 ConflictResolver.getInstance(); 93 if (!GraphicsEnvironment.isHeadless()) { 94 ConflictResolver.getInstance(); 95 } 93 96 SelectionMonitor.getInstance(); 94 97 Reasoner.getInstance(); -
applications/editors/josm/plugins/globalsat/src/org/openstreetmap/josm/plugins/globalsat/GlobalsatPlugin.java
r30532 r31665 4 4 import gnu.io.CommPortIdentifier; 5 5 6 import java.awt.GraphicsEnvironment; 6 7 import java.awt.event.ActionEvent; 7 8 import java.awt.event.KeyEvent; … … 89 90 super(info); 90 91 boolean error = false; 91 try {92 try { 92 93 CommPortIdentifier.getPortIdentifiers(); 93 } catch(java.lang.UnsatisfiedLinkError e){94 } catch (UnsatisfiedLinkError e) { 94 95 error = true; 95 JOptionPane.showMessageDialog(Main.parent, "<html>" + tr("Cannot load library rxtxSerial. If you need support to install it try Globalsat homepage at http://www.raphael-mack.de/josm-globalsat-gpx-import-plugin/") + "</html>"); 96 String msg = tr("Cannot load library rxtxSerial. If you need support to install it try Globalsat homepage at http://www.raphael-mack.de/josm-globalsat-gpx-import-plugin/"); 97 Main.error(msg); 98 if (!GraphicsEnvironment.isHeadless()) { 99 JOptionPane.showMessageDialog(Main.parent, "<html>" + msg + "</html>"); 100 } 96 101 } 97 if (!error){102 if (!error) { 98 103 importAction = new GlobalsatImportAction(); 99 104 Main.main.menu.toolsMenu.add(importAction); -
applications/editors/josm/plugins/native-password-manager/src/org/openstreetmap/josm/plugins/npm/NPMPlugin.java
r26335 r31665 1 1 // License: GPL. For details, see LICENSE file. 2 2 package org.openstreetmap.josm.plugins.npm; 3 4 import java.awt.GraphicsEnvironment; 3 5 4 6 import javax.swing.SwingUtilities; … … 26 28 new NPMCredentialsAgentFactory(sel) 27 29 ); 28 } else {30 } else if (!GraphicsEnvironment.isHeadless()) { 29 31 SwingUtilities.invokeLater(new Runnable() { 30 32 @Override
Note:
See TracChangeset
for help on using the changeset viewer.