Changeset 33869 in osm for applications/editors/josm/plugins/trustosm/src
- Timestamp:
- 2017-11-22T00:26:17+01:00 (7 years ago)
- Location:
- applications/editors/josm/plugins/trustosm/src/org/openstreetmap/josm/plugins/trustosm
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/trustosm/src/org/openstreetmap/josm/plugins/trustosm/TrustOSMplugin.java
r33536 r33869 270 270 // This makes sense for example when we start the plugin for the first time 271 271 if (!prefs.containsKey("trustosm.gpg")) Main.pref.put("trustosm.gpg", "gpg"); 272 if (!prefs.containsKey("trustosm.gpg.separateHomedir")) Main.pref.put ("trustosm.gpg.separateHomedir", true);272 if (!prefs.containsKey("trustosm.gpg.separateHomedir")) Main.pref.putBoolean("trustosm.gpg.separateHomedir", true); 273 273 } 274 274 -
applications/editors/josm/plugins/trustosm/src/org/openstreetmap/josm/plugins/trustosm/data/TrustNode.java
r32533 r33869 6 6 7 7 import org.bouncycastle.openpgp.PGPSignature; 8 import org.openstreetmap.josm.data.coor.CoordinateFormat;9 8 import org.openstreetmap.josm.data.coor.LatLon; 9 import org.openstreetmap.josm.data.coor.conversion.DecimalDegreesCoordinateFormat; 10 10 import org.openstreetmap.josm.data.osm.Node; 11 11 import org.openstreetmap.josm.data.osm.OsmPrimitive; … … 27 27 LatLon point = node.getCoor(); 28 28 String sigtext = node.getUniqueId() + "("; 29 sigtext += point.latToString(CoordinateFormat.DECIMAL_DEGREES) + ",";30 sigtext += point.lonToString(CoordinateFormat.DECIMAL_DEGREES) + ")";29 sigtext += DecimalDegreesCoordinateFormat.INSTANCE.latToString(point) + ","; 30 sigtext += DecimalDegreesCoordinateFormat.INSTANCE.lonToString(point) + ")"; 31 31 return sigtext; 32 32 } -
applications/editors/josm/plugins/trustosm/src/org/openstreetmap/josm/plugins/trustosm/gui/dialogs/TrustPreferenceEditor.java
r32533 r33869 70 70 @Override 71 71 public boolean ok() { 72 Main.pref.put("trustosm.gpg.showSignedDeleted", showSignedDeleted.isSelected()); 73 Main.pref.put("trustosm.gpg.separateHomedir", separateHomedir.isSelected()); 74 // TrustOSMplugin.gpg.refreshGpg(); 72 Main.pref.putBoolean("trustosm.gpg.showSignedDeleted", showSignedDeleted.isSelected()); 73 Main.pref.putBoolean("trustosm.gpg.separateHomedir", separateHomedir.isSelected()); 75 74 return false; 76 75 }
Note:
See TracChangeset
for help on using the changeset viewer.