Revision 31496 branches/v2_0_0_prep/extensions/extRasterTools-SE/src/org/gvsig/rastertools/GenericToolBarModule.java
GenericToolBarModule.java | ||
---|---|---|
27 | 27 |
import org.gvsig.andami.PluginServices; |
28 | 28 |
import org.gvsig.andami.plugins.Extension; |
29 | 29 |
import org.gvsig.andami.ui.mdiFrame.MDIFrame; |
30 |
import org.gvsig.app.project.documents.view.IProjectView;
|
|
31 |
import org.gvsig.app.project.documents.view.gui.BaseView;
|
|
30 |
import org.gvsig.app.project.documents.view.ViewDocument;
|
|
31 |
import org.gvsig.app.project.documents.view.gui.AbstractViewPanel;
|
|
32 | 32 |
import org.gvsig.fmap.mapcontext.MapContext; |
33 | 33 |
import org.gvsig.raster.util.RasterToolsUtil; |
34 | 34 |
import org.gvsig.rastertools.analysisview.ViewRasterAnalysisTocMenuEntry; |
... | ... | |
203 | 203 |
return false; |
204 | 204 |
} |
205 | 205 |
|
206 |
if (f instanceof BaseView) {
|
|
207 |
BaseView vista = (BaseView) f;
|
|
208 |
IProjectView model = vista.getModel();
|
|
206 |
if (f instanceof AbstractViewPanel) {
|
|
207 |
AbstractViewPanel vista = (AbstractViewPanel) f;
|
|
208 |
ViewDocument model = vista.getModel();
|
|
209 | 209 |
MapContext mapa = model.getMapContext(); |
210 | 210 |
if (mapa.getLayers().getLayersCount() > 0) { |
211 | 211 |
setToolBarVisible(true); |
Also available in: Unified diff