Changeset 32511 in osm for applications/editors/josm/plugins/trustosm/src/org/openstreetmap
- Timestamp:
- 2016-07-02T00:06:05+02:00 (8 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/actions/GetMissingDataAction.java
r30724 r32511 46 46 47 47 if (n == JOptionPane.YES_OPTION) { 48 Main.worker.submit(new DownloadSignedOsmDataTask(missingData, Main. main.getEditLayer()));48 Main.worker.submit(new DownloadSignedOsmDataTask(missingData, Main.getLayerManager().getEditLayer())); 49 49 return true; 50 50 } … … 55 55 56 56 public void getMissing(Map<String,TrustOsmPrimitive> trustitems, Collection<OsmPrimitive> missingData) { 57 Collection<OsmPrimitive> presentData = Main. main.getCurrentDataSet().allPrimitives();57 Collection<OsmPrimitive> presentData = Main.getLayerManager().getEditDataSet().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/io/SigImporter.java
r30724 r32511 43 43 44 44 protected void importData(InputStream in, File associatedFile) throws IllegalDataException { 45 if ( !Main.main.hasEditLayer()) {45 if (Main.getLayerManager().getEditLayer() == null) { 46 46 DataSet dataSet = new DataSet(); 47 47 final OsmDataLayer layer = new OsmDataLayer(dataSet, associatedFile.getName(), associatedFile); 48 Main. main.addLayer(layer);48 Main.getLayerManager().addLayer(layer); 49 49 } 50 50 // Set<OsmPrimitive> missingData = new HashSet<OsmPrimitive>(); -
applications/editors/josm/plugins/trustosm/src/org/openstreetmap/josm/plugins/trustosm/io/SigReader.java
r30724 r32511 106 106 107 107 // search corresponding OsmPrimitive 108 OsmPrimitive osm = Main. main.getCurrentDataSet().getPrimitiveById(uid, t);108 OsmPrimitive osm = Main.getLayerManager().getEditDataSet().getPrimitiveById(uid, t); 109 109 if (osm == null) { 110 110 switch (t) {
Note:
See TracChangeset
for help on using the changeset viewer.