Changeset 31665 in osm for applications/editors/josm/plugins/globalsat/src/org
- Timestamp:
- 2015-10-24T17:33:58+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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);
Note:
See TracChangeset
for help on using the changeset viewer.