Revision 31496 branches/v2_0_0_prep/extensions/extEditing/src/org/gvsig/editing/ExportTo.java
ExportTo.java | ||
---|---|---|
10 | 10 |
import org.gvsig.andami.PluginServices; |
11 | 11 |
import org.gvsig.andami.messages.NotificationManager; |
12 | 12 |
import org.gvsig.andami.plugins.Extension; |
13 |
import org.gvsig.app.project.documents.view.IProjectView;
|
|
14 |
import org.gvsig.app.project.documents.view.gui.View;
|
|
13 |
import org.gvsig.app.project.documents.view.ViewDocument;
|
|
14 |
import org.gvsig.app.project.documents.view.gui.DefaultViewPanel;
|
|
15 | 15 |
import org.gvsig.fmap.dal.DALLocator; |
16 | 16 |
import org.gvsig.fmap.dal.DataManager; |
17 | 17 |
import org.gvsig.fmap.dal.exception.DataException; |
... | ... | |
231 | 231 |
org.gvsig.andami.ui.mdiManager.IWindow f = PluginServices.getMDIManager() |
232 | 232 |
.getActiveWindow(); |
233 | 233 |
|
234 |
if (f instanceof View) {
|
|
235 |
View vista = (View) f;
|
|
236 |
IProjectView model = vista.getModel();
|
|
234 |
if (f instanceof DefaultViewPanel) {
|
|
235 |
DefaultViewPanel vista = (DefaultViewPanel) f;
|
|
236 |
ViewDocument model = vista.getModel();
|
|
237 | 237 |
MapContext mapa = model.getMapContext(); |
238 | 238 |
FLayers layers = mapa.getLayers(); |
239 | 239 |
FLayer[] actives = layers.getActives(); |
... | ... | |
819 | 819 |
return false; |
820 | 820 |
} |
821 | 821 |
|
822 |
if (f instanceof View) {
|
|
822 |
if (f instanceof DefaultViewPanel) {
|
|
823 | 823 |
return true; |
824 | 824 |
} |
825 | 825 |
return false; |
Also available in: Unified diff