Revision 63 org.gvsig.catalog/branches/org.gvsig.catalog-CSW2.0.2/org.gvsig.catalog/org.gvsig.catalog.extension/src/main/java/org/gvsig/catalog/loaders/GvSigLayerLoader.java

View differences:

GvSigLayerLoader.java
65 65
 * @author Jorge Piera Llodra (piera_jor@gva.es)
66 66
 */
67 67
public abstract class GvSigLayerLoader extends LayerLoader{
68
    private static final MapContextManager MAP_CONTEXT_MANAGER = 
68
    protected static final MapContextManager MAP_CONTEXT_MANAGER = 
69 69
        MapContextLocator.getMapContextManager();
70 70
    protected static final DataManager DATA_MANAGER =
71 71
        DALLocator.getDataManager();
......
96 96
        }
97 97
    }	
98 98

  
99
    private FLayer createLayerFromParameters() throws InitializeException, ProviderNotRegisteredException, LoadLayerException{
99
    protected FLayer createLayerFromParameters() throws InitializeException, ProviderNotRegisteredException, LoadLayerException{
100 100
        DataStoreParameters dataStoreParameters = createDataStoreParameters();    
101 101
        return MAP_CONTEXT_MANAGER.createLayer(getLayerName(), dataStoreParameters);    
102 102
    }
103 103

  
104
    private FLayer createLayerFromExtensionPoint() throws Exception{
104
    protected FLayer createLayerFromExtensionPoint() throws Exception{
105 105
        DataStoreParameters dataStoreParameters = createDataStoreParameters();            
106 106
        ExtensionPoint extensionPoint = EXTENSION_POINT_MANAGER.get("CatalogLayers");
107 107
        return (FLayer)extensionPoint.create(extensionPointName(), new Object[]{dataStoreParameters});
......
112 112
     * @param lyr
113 113
     * Layer lo load
114 114
     */
115
    private void addLayerToView(FLayer lyr) {
115
    protected void addLayerToView(FLayer lyr) {
116 116
        AbstractViewPanel theView = 
117 117
            (AbstractViewPanel) PluginServices.getMDIManager().getActiveWindow();
118 118
        theView.getMapControl().getMapContext().getLayers().addLayer(lyr);			

Also available in: Unified diff