Revision 2972 trunk/extensions/extGeoreferencing/src/com/iver/cit/gvsig/georeferencing/GeoreferencingModule.java
GeoreferencingModule.java | ||
---|---|---|
58 | 58 |
import com.iver.andami.plugins.Extension; |
59 | 59 |
import com.iver.andami.ui.mdiFrame.MDIFrame; |
60 | 60 |
import com.iver.cit.gvsig.fmap.MapControl; |
61 |
import com.iver.cit.gvsig.fmap.layers.FLayer; |
|
62 |
import com.iver.cit.gvsig.fmap.layers.FLyrPoints; |
|
61 | 63 |
import com.iver.cit.gvsig.gui.View; |
62 | 64 |
import com.iver.cit.gvsig.gui.Dialogs.GeoreferencingDialog; |
63 | 65 |
|
... | ... | |
142 | 144 |
} |
143 | 145 |
|
144 | 146 |
/** |
145 |
* Cuando cerramos la ventana de georreferenciaci?n se elimina la barra de herramientas. |
|
147 |
* Cuando cerramos la ventana de georreferenciaci?n se elimina la barra de herramientas |
|
148 |
* y se destruye la capa de puntos. |
|
146 | 149 |
*/ |
147 | 150 |
public void internalFrameClosing(InternalFrameEvent arg0) { |
151 |
//Eliminamos la capa de puntos |
|
152 |
View theView = (View) PluginServices.getMDIManager().getActiveView(); |
|
153 |
FLyrPoints lyrPoints = null; |
|
154 |
for(int i=0;i<theView.getMapControl().getMapContext().getLayers().getLayersCount();i++){ |
|
155 |
FLayer lyr = theView.getMapControl().getMapContext().getLayers().getLayer(i); |
|
156 |
if(lyr instanceof FLyrPoints) |
|
157 |
theView.getMapControl().getMapContext().getLayers().removeLayer(i); |
|
158 |
} |
|
148 | 159 |
GeoreferencingToolsModule.visible = false; |
149 | 160 |
PluginServices.getMainFrame().enableControls(); |
150 | 161 |
} |
Also available in: Unified diff