Changeset 25785 in osm for applications


Ignore:
Timestamp:
2011-04-04T12:58:18+02:00 (14 years ago)
Author:
retsam
Message:

latest working trustosm plugin

Location:
applications/editors/josm/plugins/trustosm/src/org/openstreetmap/josm/plugins/trustosm
Files:
1 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/trustosm/src/org/openstreetmap/josm/plugins/trustosm/actions/GetMissingDataAction.java

    r25269 r25785  
    2323        public GetMissingDataAction() {
    2424                super(tr("Download OSM"),"getmissing",tr("Get all referenced but not actually present OSM objects from OSM server."),
    25                                 Shortcut.registerShortcut("gpg:download", tr("Download referenced osm objects..."), KeyEvent.VK_D, Shortcut.GROUP_MENU),true);
     25                                Shortcut.registerShortcut("gpg:download", tr("Download referenced osm objects..."), KeyEvent.VK_T, Shortcut.GROUP_MENU),true);
    2626        }
    2727
     
    5555
    5656        public void getMissing(Map<String,TrustOsmPrimitive> trustitems, Collection<OsmPrimitive> missingData) {
    57                 Collection<OsmPrimitive> presentData = getCurrentDataSet().allPrimitives();
     57                Collection<OsmPrimitive> presentData = Main.main.getCurrentDataSet().allPrimitives();
    5858                for (TrustOsmPrimitive t : trustitems.values()) {
    5959                        OsmPrimitive osm = t.getOsmPrimitive();
  • applications/editors/josm/plugins/trustosm/src/org/openstreetmap/josm/plugins/trustosm/gui/dialogs/TrustDialog.java

    r25269 r25785  
    2121import java.util.Collection;
    2222import java.util.HashMap;
    23 import java.util.HashSet;
    2423import java.util.List;
    2524import java.util.Map;
     
    589588                                trust = TrustOSMplugin.signedItems.get(id);
    590589                                sigsAvailable = true;
     590                                /*
    591591                                Map<String,String> tags = osm.getKeys();
    592592                                Map<String, TrustSignatures>  signedTags = trust.getTagSigs();
     
    596596                                        TrustSignatures sigs = signedTags.get(removedKey);
    597597                                        sigs.setStatus( TrustSignatures.ITEM_REMOVED );
    598                                         //tags.putAll(TrustOSMplugin.gpg.getKeyValueFromSignature(sigs.getLatestSignature()));
    599                                 }
    600 
     598                                        String[] kv = TrustOsmPrimitive.generateTagsFromSigtext(sigs.getOnePlainText());
     599                                        tags.put(kv[0],kv[1]);
     600                                }
     601                                 */
    601602                        } else {
    602603                                trust = TrustOsmPrimitive.createTrustOsmPrimitive(osm);
  • applications/editors/josm/plugins/trustosm/src/org/openstreetmap/josm/plugins/trustosm/io/SigImporter.java

    r25269 r25785  
    5050                //              Set<OsmPrimitive> missingData = new HashSet<OsmPrimitive>();
    5151                Map<String,TrustOsmPrimitive> trustitems = SigReader.parseSignatureXML(in, NullProgressMonitor.INSTANCE);
    52 
     52                System.out.println(trustitems.size());
    5353                /*
    5454                int missingCount = missingData.size();
  • applications/editors/josm/plugins/trustosm/src/org/openstreetmap/josm/plugins/trustosm/io/SigReader.java

    r25269 r25785  
    194194         * @param source the source input stream. Must not be null.
    195195         * @param progressMonitor  the progress monitor. If null, {@see NullProgressMonitor#INSTANCE} is assumed
    196          * @param missingData   every OsmPrimitive that is not present in the current Datalayer while parsing is stored in that set
    197196         *
    198197         * @return a map of the parsed OSM Signatures (TrustOSMItem) with their related OSM-ID as key
Note: See TracChangeset for help on using the changeset viewer.