Ignore:
Timestamp:
2017-11-22T00:26:17+01:00 (7 years ago)
Author:
donvip
Message:

update to JOSM 12840

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  
    270270        // This makes sense for example when we start the plugin for the first time
    271271        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);
    273273    }
    274274
  • applications/editors/josm/plugins/trustosm/src/org/openstreetmap/josm/plugins/trustosm/data/TrustNode.java

    r32533 r33869  
    66
    77import org.bouncycastle.openpgp.PGPSignature;
    8 import org.openstreetmap.josm.data.coor.CoordinateFormat;
    98import org.openstreetmap.josm.data.coor.LatLon;
     9import org.openstreetmap.josm.data.coor.conversion.DecimalDegreesCoordinateFormat;
    1010import org.openstreetmap.josm.data.osm.Node;
    1111import org.openstreetmap.josm.data.osm.OsmPrimitive;
     
    2727        LatLon point = node.getCoor();
    2828        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) + ")";
    3131        return sigtext;
    3232    }
  • applications/editors/josm/plugins/trustosm/src/org/openstreetmap/josm/plugins/trustosm/gui/dialogs/TrustPreferenceEditor.java

    r32533 r33869  
    7070    @Override
    7171    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());
    7574        return false;
    7675    }
Note: See TracChangeset for help on using the changeset viewer.