Changeset 25833 in osm for applications/editors/josm
- Timestamp:
- 2011-04-12T22:27:07+02:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/livegps/src/livegps/LiveGpsAcquirer.java
r25791 r25833 22 22 23 23 public class LiveGpsAcquirer implements Runnable { 24 private static final String DEFAULT_HOST = "localhost"; 25 private static final int DEFAULT_PORT = 2947; 26 private static final String C_HOST = "livegps.gpsd.host"; 27 private static final String C_PORT = "livegps.gpsd.port"; 24 28 private String gpsdHost; 25 29 private int gpsdPort; … … 41 45 super(); 42 46 43 gpsdHost = Main.pref.get( "livegps.gpsd.host", "localhost");44 gpsdPort = Main.pref.getInteger( "livegps.gpsd.port", 2947);47 gpsdHost = Main.pref.get(C_HOST, DEFAULT_HOST); 48 gpsdPort = Main.pref.getInteger(C_PORT, DEFAULT_PORT); 45 49 // put the settings back in to the preferences, makes keys appear. 46 Main.pref.put( "livegps.gpsd.host", gpsdHost);47 Main.pref.putInteger( "livegps.gpsd.port", gpsdPort);50 Main.pref.put(C_HOST, gpsdHost); 51 Main.pref.putInteger(C_PORT, gpsdPort); 48 52 } 49 53
Note:
See TracChangeset
for help on using the changeset viewer.