Changeset 19012 in osm for applications/editors/josm/plugins/livegps/src
- Timestamp:
- 2009-12-09T22:55:18+01:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/livegps/src/livegps/LiveGpsAcquirer.java
r19011 r19012 20 20 BufferedReader gpsdReader; 21 21 boolean connected = false; 22 String gpsdHost = Main.pref.get("livegps.gpsd.host", "localhost");23 int gpsdPort = Main.pref.getInteger("livegps.gpsd.port", 2947);22 String gpsdHost; 23 int gpsdPort; 24 24 boolean shutdownFlag = false; 25 25 private final List<PropertyChangeListener> propertyChangeListener = new ArrayList<PropertyChangeListener>(); 26 26 private PropertyChangeEvent lastStatusEvent; 27 27 private PropertyChangeEvent lastDataEvent; 28 29 /** 30 * Constructor, initializes the configurable settings. 31 */ 32 public LiveGpsAcquirer() { 33 super(); 34 35 gpsdHost = Main.pref.get("livegps.gpsd.host", "localhost"); 36 gpsdPort = Main.pref.getInteger("livegps.gpsd.port", 2947); 37 // put the settings back in to the preferences, makes keys appear. 38 Main.pref.put("livegps.gpsd.host", gpsdHost); 39 Main.pref.putInteger("livegps.gpsd.port", gpsdPort); 40 } 28 41 29 42 /**
Note:
See TracChangeset
for help on using the changeset viewer.