Index: applications/editors/josm/plugins/imagerycache/src/org/openstreetmap/josm/plugins/imagerycache/ImageryCachePlugin.java
===================================================================
--- applications/editors/josm/plugins/imagerycache/src/org/openstreetmap/josm/plugins/imagerycache/ImageryCachePlugin.java	(revision 31146)
+++ applications/editors/josm/plugins/imagerycache/src/org/openstreetmap/josm/plugins/imagerycache/ImageryCachePlugin.java	(revision 31304)
@@ -7,4 +7,6 @@
 import org.openstreetmap.gui.jmapviewer.interfaces.TileLoader;
 import org.openstreetmap.gui.jmapviewer.interfaces.TileLoaderListener;
+import org.openstreetmap.josm.data.imagery.CachedTileLoaderFactory;
+import org.openstreetmap.josm.data.imagery.TileLoaderFactory;
 import org.openstreetmap.josm.gui.layer.TMSLayer;
 import org.openstreetmap.josm.plugins.Plugin;
@@ -16,8 +18,8 @@
 public class ImageryCachePlugin extends Plugin {
     
-    TMSLayer.TileLoaderFactory factory = new TMSLayer.TileLoaderFactory() {
+    TileLoaderFactory factory = new TileLoaderFactory() {
         @Override
         public OsmTileLoader makeTileLoader(TileLoaderListener listener) {
-            String cachePath = TMSLayer.PROP_TILECACHE_DIR.get();
+            String cachePath = CachedTileLoaderFactory.PROP_TILECACHE_DIR.get();
             try {
                 new File(cachePath).mkdirs();
@@ -41,5 +43,5 @@
     public ImageryCachePlugin(PluginInformation info) {
         super(info);
-        TMSLayer.setCustomTileLoaderFactory(factory);
+        TMSLayer.setTileLoaderFactory(factory);
     }
     
