Revision 31496 branches/v2_0_0_prep/extensions/extGazetteer/src/org/gvsig/gazetteer/DeleteSearchesExtension.java
DeleteSearchesExtension.java | ||
---|---|---|
4 | 4 |
|
5 | 5 |
import org.gvsig.andami.PluginServices; |
6 | 6 |
import org.gvsig.andami.plugins.Extension; |
7 |
import org.gvsig.app.project.documents.view.gui.BaseView;
|
|
7 |
import org.gvsig.app.project.documents.view.gui.AbstractViewPanel;
|
|
8 | 8 |
import org.gvsig.fmap.mapcontext.layers.vectorial.GraphicLayer; |
9 | 9 |
|
10 | 10 |
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana |
... | ... | |
142 | 142 |
return false; |
143 | 143 |
} |
144 | 144 |
|
145 |
if (activeView instanceof BaseView){
|
|
145 |
if (activeView instanceof AbstractViewPanel){
|
|
146 | 146 |
Boolean bool = (Boolean)views.get(activeView); |
147 | 147 |
if (bool == null){ |
148 | 148 |
return false; |
... | ... | |
161 | 161 |
* |
162 | 162 |
*/ |
163 | 163 |
public static void deteleAllFeatures(){ |
164 |
BaseView activeView =
|
|
165 |
(BaseView) PluginServices.getMDIManager().getActiveWindow();
|
|
164 |
AbstractViewPanel activeView =
|
|
165 |
(AbstractViewPanel) PluginServices.getMDIManager().getActiveWindow();
|
|
166 | 166 |
GraphicLayer lyr = activeView.getMapControl().getMapContext().getGraphicsLayer(); |
167 | 167 |
lyr.clearAllGraphics(); |
168 | 168 |
activeView.getMapControl().getViewPort().setEnvelope(activeView.getMapControl().getViewPort().getAdjustedExtent()); |
... | ... | |
174 | 174 |
* |
175 | 175 |
*/ |
176 | 176 |
public static void setVisible(){ |
177 |
BaseView activeView =
|
|
178 |
(BaseView) PluginServices.getMDIManager().getActiveWindow();
|
|
177 |
AbstractViewPanel activeView =
|
|
178 |
(AbstractViewPanel) PluginServices.getMDIManager().getActiveWindow();
|
|
179 | 179 |
views.put(activeView,new Boolean(true)); |
180 | 180 |
} |
181 | 181 |
|
Also available in: Unified diff