Revision 31496 branches/v2_0_0_prep/extensions/extGazetteer/src/org/gvsig/gazetteer/gui/SearchDialog.java
SearchDialog.java | ||
---|---|---|
49 | 49 |
import org.gvsig.andami.PluginServices; |
50 | 50 |
import org.gvsig.andami.ui.mdiManager.IWindow; |
51 | 51 |
import org.gvsig.andami.ui.mdiManager.WindowInfo; |
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.catalog.querys.Coordinates; |
54 | 54 |
import org.gvsig.catalog.utils.Frames; |
55 | 55 |
import org.gvsig.fmap.mapcontext.events.ColorEvent; |
... | ... | |
170 | 170 |
* |
171 | 171 |
*/ |
172 | 172 |
private void loadViewPortCoordinates(){ |
173 |
BaseView activeView =
|
|
174 |
(BaseView) PluginServices.getMDIManager().getActiveWindow();
|
|
173 |
AbstractViewPanel activeView =
|
|
174 |
(AbstractViewPanel) PluginServices.getMDIManager().getActiveWindow();
|
|
175 | 175 |
|
176 | 176 |
Rectangle2D r2d= activeView.getMapControl().getViewPort().getExtent(); |
177 | 177 |
|
... | ... | |
189 | 189 |
* This method joins the viewPort event to the listener |
190 | 190 |
*/ |
191 | 191 |
private void setViewChangeListener(){ |
192 |
BaseView activeView =
|
|
193 |
(BaseView) PluginServices.getMDIManager().getActiveWindow();
|
|
192 |
AbstractViewPanel activeView =
|
|
193 |
(AbstractViewPanel) PluginServices.getMDIManager().getActiveWindow();
|
|
194 | 194 |
|
195 | 195 |
activeView.getMapControl().getViewPort().addViewPortListener(this); |
196 | 196 |
|
Also available in: Unified diff