Revision 43891 branches/org.gvsig.desktop-2018a/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.mapcontext/org.gvsig.fmap.mapcontext.impl/src/main/java/org/gvsig/fmap/mapcontext/raster/impl/MapContextRasterLibrary.java

View differences:

MapContextRasterLibrary.java
31 31
import org.gvsig.fmap.mapcontext.MapContextLibrary;
32 32
import org.gvsig.fmap.mapcontext.MapContextLocator;
33 33
import org.gvsig.fmap.mapcontext.MapContextManager;
34
import org.gvsig.fmap.mapcontext.layers.LayerFactory;
35 34
import org.gvsig.raster.lib.buffer.api.BufferLocator;
36 35
import org.gvsig.raster.lib.buffer.api.OperationManager;
37 36
import org.gvsig.raster.lib.legend.api.RasterLegendLocator;
......
83 82

  
84 83
    @Override
85 84
    protected void doInitialize() throws LibraryException {
86
        LayerFactory.getInstance().registerLayerToUseForStore(
87
                RasterStore.class, DefaultRasterLayer.class);
88
        RasterLegendLocator.registerRasterLegendManager(DefaultRasterLegendManager.class);
85
         RasterLegendLocator.registerRasterLegendManager(DefaultRasterLegendManager.class);
89 86

  
90 87
    }
91 88

  
92 89
    @Override
93 90
    protected void doPostInitialize() throws LibraryException {
91
        MapContextManager manager = MapContextLocator.getMapContextManager();
92
        manager.registerLayer(RasterStore.class, DefaultRasterLayer.class);
93
        
94 94
        Caller caller = new DefaultCaller();
95 95
        caller.add( new DefaultRasterLayer.RegisterPersistence() );
96 96

  

Also available in: Unified diff