Revision 10721 branches/v10/applications/appgvSIG/src/com/iver/cit/gvsig/ShowTable.java
ShowTable.java | ||
---|---|---|
61 | 61 |
import com.iver.cit.gvsig.project.documents.table.ProjectTable; |
62 | 62 |
import com.iver.cit.gvsig.project.documents.table.ProjectTableFactory; |
63 | 63 |
import com.iver.cit.gvsig.project.documents.table.gui.Table; |
64 |
import com.iver.cit.gvsig.project.documents.view.gui.View; |
|
64 |
import com.iver.cit.gvsig.project.documents.view.gui.BaseView;
|
|
65 | 65 |
|
66 | 66 |
|
67 | 67 |
/** |
... | ... | |
74 | 74 |
* @see com.iver.andami.plugins.IExtension#isEnabled() |
75 | 75 |
*/ |
76 | 76 |
public boolean isEnabled() { |
77 |
View f = (View) PluginServices.getMDIManager().getActiveWindow();
|
|
77 |
BaseView f = (BaseView) PluginServices.getMDIManager().getActiveWindow();
|
|
78 | 78 |
|
79 | 79 |
if (f == null) { |
80 | 80 |
return false; |
... | ... | |
113 | 113 |
return false; |
114 | 114 |
} |
115 | 115 |
|
116 |
return (f instanceof View); |
|
116 |
return (f instanceof BaseView);
|
|
117 | 117 |
} |
118 | 118 |
|
119 | 119 |
/** |
120 | 120 |
* @see com.iver.mdiApp.plugins.IExtension#updateUI(java.lang.String) |
121 | 121 |
*/ |
122 | 122 |
public void execute(String s) { |
123 |
View vista = (View) PluginServices.getMDIManager().getActiveWindow(); |
|
123 |
|
|
124 |
BaseView vista = (BaseView) PluginServices.getMDIManager().getActiveWindow(); |
|
124 | 125 |
FLayer[] actives = vista.getModel().getMapContext().getLayers() |
125 | 126 |
.getActives(); |
126 | 127 |
|
Also available in: Unified diff