Revision 31496 branches/v2_0_0_prep/extensions/extEditing/src/org/gvsig/editing/LayerPropertiesExtension.java
LayerPropertiesExtension.java | ||
---|---|---|
2 | 2 |
|
3 | 3 |
import org.gvsig.andami.PluginServices; |
4 | 4 |
import org.gvsig.andami.plugins.Extension; |
5 |
import org.gvsig.app.project.documents.view.IProjectView;
|
|
6 |
import org.gvsig.app.project.documents.view.gui.View;
|
|
5 |
import org.gvsig.app.project.documents.view.ViewDocument;
|
|
6 |
import org.gvsig.app.project.documents.view.gui.DefaultViewPanel;
|
|
7 | 7 |
import org.gvsig.fmap.mapcontext.MapContext; |
8 | 8 |
import org.gvsig.fmap.mapcontext.layers.FLayer; |
9 | 9 |
import org.gvsig.fmap.mapcontext.layers.vectorial.FLyrVect; |
... | ... | |
63 | 63 |
|
64 | 64 |
public void execute(String actionCommand) { |
65 | 65 |
org.gvsig.andami.ui.mdiManager.IWindow view = PluginServices.getMDIManager().getActiveWindow(); |
66 |
if (!(view instanceof View))
|
|
66 |
if (!(view instanceof DefaultViewPanel))
|
|
67 | 67 |
return; |
68 |
View vista=(View)view;
|
|
69 |
IProjectView model = vista.getModel();
|
|
68 |
DefaultViewPanel vista=(DefaultViewPanel)view;
|
|
69 |
ViewDocument model = vista.getModel();
|
|
70 | 70 |
MapContext mapa = model.getMapContext(); |
71 | 71 |
MapControl mapCtrl = vista.getMapControl(); |
72 | 72 |
FLayer[] layers=mapa.getLayers().getActives(); |
Also available in: Unified diff