Changeset 30145 in osm for applications/editors/josm/plugins/reltoolbox/src/relcontext/actions/DownloadParentsAction.java
- Timestamp:
- 2013-12-22T12:27:11+01:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/reltoolbox/src/relcontext/actions/DownloadParentsAction.java
r29535 r30145 37 37 this.rel = rel; 38 38 rel.addChosenRelationListener(this); 39 setEnabled(rel.get() != null && Main.ma p.mapView.getEditLayer() != null);39 setEnabled(rel.get() != null && Main.main.getEditLayer() != null); 40 40 } 41 41 … … 46 46 objects.add(relation); 47 47 objects.addAll(relation.getMemberPrimitives()); 48 Main.worker.submit(new DownloadReferrersTask(Main.ma p.mapView.getEditLayer(), objects));48 Main.worker.submit(new DownloadReferrersTask(Main.main.getEditLayer(), objects)); 49 49 } 50 50 51 51 public void chosenRelationChanged( Relation oldRelation, Relation newRelation ) { 52 setEnabled(newRelation != null && Main.ma p.mapView.getEditLayer() != null);52 setEnabled(newRelation != null && Main.main.getEditLayer() != null); 53 53 } 54 54 55 55 protected void downloadMembers( Relation rel ) { 56 56 if( !rel.isNew() ) { 57 Main.worker.submit(new DownloadRelationTask(Collections.singletonList(rel), Main.ma p.mapView.getEditLayer()));57 Main.worker.submit(new DownloadRelationTask(Collections.singletonList(rel), Main.main.getEditLayer())); 58 58 } 59 59 } … … 64 64 ret.addAll(rel.getIncompleteMembers()); 65 65 if( ret.isEmpty() ) return; 66 Main.worker.submit(new DownloadRelationMemberTask(Collections.singletonList(rel), ret, Main.ma p.mapView.getEditLayer()));66 Main.worker.submit(new DownloadRelationMemberTask(Collections.singletonList(rel), ret, Main.main.getEditLayer())); 67 67 } 68 68 }
Note:
See TracChangeset
for help on using the changeset viewer.