Revision 31496 branches/v2_0_0_prep/extensions/extGazetteer/src/org/gvsig/gazetteer/loaders/FeatureLoader.java
FeatureLoader.java | ||
---|---|---|
49 | 49 |
import org.cresques.cts.ICoordTrans; |
50 | 50 |
import org.cresques.cts.IProjection; |
51 | 51 |
import org.gvsig.andami.PluginServices; |
52 |
import org.gvsig.app.project.documents.view.gui.BaseView;
|
|
52 |
import org.gvsig.app.project.documents.view.gui.AbstractViewPanel;
|
|
53 | 53 |
import org.gvsig.fmap.crs.CRSFactory; |
54 | 54 |
import org.gvsig.fmap.geom.GeometryLocator; |
55 | 55 |
import org.gvsig.fmap.geom.GeometryManager; |
... | ... | |
91 | 91 |
* Server projection |
92 | 92 |
*/ |
93 | 93 |
public FeatureLoader(String sProjection){ |
94 |
BaseView activeView =
|
|
95 |
(BaseView) PluginServices.getMDIManager().getActiveWindow();
|
|
94 |
AbstractViewPanel activeView =
|
|
95 |
(AbstractViewPanel) PluginServices.getMDIManager().getActiveWindow();
|
|
96 | 96 |
|
97 | 97 |
|
98 | 98 |
IProjection projection = CRSFactory.getCRS(sProjection); |
... | ... | |
131 | 131 |
* Feature that contains the coordinates |
132 | 132 |
*/ |
133 | 133 |
private void focusCenter(Feature feature){ |
134 |
BaseView activeView =
|
|
135 |
(BaseView) PluginServices.getMDIManager().getActiveWindow();
|
|
134 |
AbstractViewPanel activeView =
|
|
135 |
(AbstractViewPanel) PluginServices.getMDIManager().getActiveWindow();
|
|
136 | 136 |
|
137 | 137 |
IProjection projection = activeView.getProjection(); |
138 | 138 |
ViewPort viewPort = activeView.getMapControl().getViewPort(); |
... | ... | |
200 | 200 |
* To remove or keep the old searches |
201 | 201 |
*/ |
202 | 202 |
private void addAndDrawLabel(Feature feature,boolean isRemoveOldClicked,boolean isMarkedPlaceClicked){ |
203 |
BaseView activeView =
|
|
204 |
(BaseView) PluginServices.getMDIManager().getActiveWindow();
|
|
203 |
AbstractViewPanel activeView =
|
|
204 |
(AbstractViewPanel) PluginServices.getMDIManager().getActiveWindow();
|
|
205 | 205 |
|
206 | 206 |
GraphicLayer lyr = activeView.getMapControl().getMapContext().getGraphicsLayer(); |
207 | 207 |
|
Also available in: Unified diff