Ignore:
Timestamp:
2017-08-24T15:54:00+02:00 (7 years ago)
Author:
Don-vip
Message:

see #15182 - deprecate Main.worker, replace it by gui.MainApplication.worker + code refactoring to make sure only editor packages use it

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/CreateMultipolygonAction.java

    r12630 r12634  
    161161        if (multipolygonRelation != null) {
    162162            if (!multipolygonRelation.isNew() && multipolygonRelation.isIncomplete()) {
    163                 Main.worker.submit(new DownloadRelationTask(Collections.singleton(multipolygonRelation), Main.getLayerManager().getEditLayer()));
     163                MainApplication.worker.submit(new DownloadRelationTask(Collections.singleton(multipolygonRelation), Main.getLayerManager().getEditLayer()));
    164164            } else if (multipolygonRelation.hasIncompleteMembers()) {
    165                 Main.worker.submit(new DownloadRelationMemberTask(multipolygonRelation,
     165                MainApplication.worker.submit(new DownloadRelationMemberTask(multipolygonRelation,
    166166                        DownloadSelectedIncompleteMembersAction.buildSetOfIncompleteMembers(Collections.singleton(multipolygonRelation)),
    167167                        Main.getLayerManager().getEditLayer()));
     
    169169        }
    170170        // create/update multipolygon relation
    171         Main.worker.submit(new CreateUpdateMultipolygonTask(selectedWays, multipolygonRelation));
     171        MainApplication.worker.submit(new CreateUpdateMultipolygonTask(selectedWays, multipolygonRelation));
    172172    }
    173173
Note: See TracChangeset for help on using the changeset viewer.