Changeset 10541 in josm
- Timestamp:
- 2016-07-16T23:56:38+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/preferences/imagery/CacheContentsPanel.java
r10536 r10541 14 14 import java.util.Set; 15 15 import java.util.concurrent.ConcurrentHashMap; 16 import java.util.concurrent.ExecutorService;17 import java.util.concurrent.Executors;18 16 19 17 import javax.swing.AbstractAction; … … 39 37 import org.openstreetmap.josm.tools.GBC; 40 38 import org.openstreetmap.josm.tools.Pair; 41 import org.openstreetmap.josm.tools.Utils;42 39 43 40 /** … … 49 46 public class CacheContentsPanel extends JPanel { 50 47 51 52 private final transient ExecutorService executor =53 Executors.newSingleThreadExecutor(Utils.newThreadFactory(getClass() + "-%d", Thread.NORM_PRIORITY));54 55 48 /** 56 49 * Creates cache content panel … … 58 51 public CacheContentsPanel() { 59 52 super(new GridBagLayout()); 60 executor.submit(new Runnable() {53 Main.worker.submit(new Runnable() { 61 54 @Override 62 55 public void run() { … … 66 59 } 67 60 }); 68 executor.shutdown();69 61 } 70 62
Note:
See TracChangeset
for help on using the changeset viewer.