Ignore:
Timestamp:
2016-08-03T14:37:38+02:00 (3 years ago)
Author:
simon04
Message:

see #11390 - Use CompletableFuture for async image loading

File:
1 edited

Legend:

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

    r10634 r10714  
    3232import org.openstreetmap.josm.tools.GBC;
    3333import org.openstreetmap.josm.tools.ImageProvider;
    34 import org.openstreetmap.josm.tools.ImageResource;
    3534
    3635/**
     
    5655        String icon = info.getIcon();
    5756        if (icon != null) {
    58             new ImageProvider(icon).setOptional(true).getInBackground((ImageResource result) -> {
     57            new ImageProvider(icon).setOptional(true).getResourceAsync().thenAccept(result -> {
    5958                if (result != null) {
    6059                    GuiHelper.runInEDT(() -> result.attachImageIcon(this));
Note: See TracChangeset for help on using the changeset viewer.