Changeset 25785 in osm for applications/editors/josm/plugins/trustosm
- Timestamp:
- 2011-04-04T12:58:18+02:00 (14 years ago)
- 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 23 23 public GetMissingDataAction() { 24 24 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); 26 26 } 27 27 … … 55 55 56 56 public void getMissing(Map<String,TrustOsmPrimitive> trustitems, Collection<OsmPrimitive> missingData) { 57 Collection<OsmPrimitive> presentData = getCurrentDataSet().allPrimitives();57 Collection<OsmPrimitive> presentData = Main.main.getCurrentDataSet().allPrimitives(); 58 58 for (TrustOsmPrimitive t : trustitems.values()) { 59 59 OsmPrimitive osm = t.getOsmPrimitive(); -
applications/editors/josm/plugins/trustosm/src/org/openstreetmap/josm/plugins/trustosm/gui/dialogs/TrustDialog.java
r25269 r25785 21 21 import java.util.Collection; 22 22 import java.util.HashMap; 23 import java.util.HashSet;24 23 import java.util.List; 25 24 import java.util.Map; … … 589 588 trust = TrustOSMplugin.signedItems.get(id); 590 589 sigsAvailable = true; 590 /* 591 591 Map<String,String> tags = osm.getKeys(); 592 592 Map<String, TrustSignatures> signedTags = trust.getTagSigs(); … … 596 596 TrustSignatures sigs = signedTags.get(removedKey); 597 597 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 */ 601 602 } else { 602 603 trust = TrustOsmPrimitive.createTrustOsmPrimitive(osm); -
applications/editors/josm/plugins/trustosm/src/org/openstreetmap/josm/plugins/trustosm/io/SigImporter.java
r25269 r25785 50 50 // Set<OsmPrimitive> missingData = new HashSet<OsmPrimitive>(); 51 51 Map<String,TrustOsmPrimitive> trustitems = SigReader.parseSignatureXML(in, NullProgressMonitor.INSTANCE); 52 52 System.out.println(trustitems.size()); 53 53 /* 54 54 int missingCount = missingData.size(); -
applications/editors/josm/plugins/trustosm/src/org/openstreetmap/josm/plugins/trustosm/io/SigReader.java
r25269 r25785 194 194 * @param source the source input stream. Must not be null. 195 195 * @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 set197 196 * 198 197 * @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.