Changeset 33045 in osm for applications/editors/josm/plugins/livegps/src/livegps/LiveGpsDialog.java
- Timestamp:
- 2016-10-30T00:14:07+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/livegps/src/livegps/LiveGpsDialog.java
r32952 r33045 1 /** 2 * 3 */ 1 // License: Public Domain. For details, see LICENSE file. 4 2 package livegps; 5 3 … … 69 67 return; 70 68 71 if("gpsdata".equals(evt.getPropertyName())) { 69 if ("gpsdata".equals(evt.getPropertyName())) { 72 70 data = (LiveGpsData) evt.getNewValue(); 73 71 … … 75 73 @Override 76 74 public void run() { 77 if(data.isFix()) { 75 if (data.isFix()) { 78 76 panel.setBackground(Color.WHITE); 79 77 latLabel.setText(data.getLatitude() + "deg"); … … 84 82 85 83 String wayString = data.getWayInfo(); 86 if (wayString.length() > 0) {84 if (!wayString.isEmpty()) { 87 85 wayLabel.setText(wayString); 88 86 } else { … … 104 102 public void run() { 105 103 statusLabel.setText(status.getStatusMessage()); 106 if(status.getStatus() != LiveGpsStatus.GpsStatus.CONNECTED) { 104 if (status.getStatus() != LiveGpsStatus.GpsStatus.CONNECTED) { 107 105 panel.setBackground(Color.RED); 108 106 } else {
Note:
See TracChangeset
for help on using the changeset viewer.
