Revision 31496 branches/v2_0_0_prep/extensions/extCatalog/src/org/gvsig/catalog/loaders/GvSigLayerLoader.java
GvSigLayerLoader.java | ||
---|---|---|
41 | 41 |
package org.gvsig.catalog.loaders; |
42 | 42 |
|
43 | 43 |
import org.gvsig.andami.PluginServices; |
44 |
import org.gvsig.app.project.documents.view.gui.BaseView;
|
|
44 |
import org.gvsig.app.project.documents.view.gui.AbstractViewPanel;
|
|
45 | 45 |
import org.gvsig.catalog.schemas.Resource; |
46 | 46 |
import org.gvsig.fmap.dal.DataStoreParameters; |
47 | 47 |
import org.gvsig.fmap.mapcontext.exceptions.LoadLayerException; |
... | ... | |
69 | 69 |
* Layer lo load |
70 | 70 |
*/ |
71 | 71 |
protected void addLayerToView(FLayer lyr) { |
72 |
BaseView theView =
|
|
73 |
(BaseView) PluginServices.getMDIManager().getActiveWindow();
|
|
72 |
AbstractViewPanel theView =
|
|
73 |
(AbstractViewPanel) PluginServices.getMDIManager().getActiveWindow();
|
|
74 | 74 |
|
75 | 75 |
if (lyr != null) { |
76 | 76 |
theView.getMapControl().getMapContext().beginAtomicEvent(); |
... | ... | |
87 | 87 |
* @throws LoadLayerException |
88 | 88 |
*/ |
89 | 89 |
protected void addLayerToView(String layerName, DataStoreParameters storeParameters) throws LoadLayerException { |
90 |
BaseView theView =
|
|
91 |
(BaseView) PluginServices.getMDIManager().getActiveWindow();
|
|
90 |
AbstractViewPanel theView =
|
|
91 |
(AbstractViewPanel) PluginServices.getMDIManager().getActiveWindow();
|
|
92 | 92 |
|
93 | 93 |
FLayer layer = LayerFactory.getInstance().createLayer(layerName, storeParameters); |
94 | 94 |
|
Also available in: Unified diff