Revision 31496 branches/v2_0_0_prep/applications/appgvSIG/src/org/gvsig/app/extension/LayoutInsertToolsExtension.java

View differences:

LayoutInsertToolsExtension.java
43 43
import org.gvsig.andami.PluginServices;
44 44
import org.gvsig.andami.plugins.Extension;
45 45
import org.gvsig.andami.ui.mdiManager.IWindow;
46
import org.gvsig.app.project.documents.layout.gui.Layout;
46
import org.gvsig.app.project.documents.layout.gui.LayoutPanel;
47 47
import org.slf4j.Logger;
48 48
import org.slf4j.LoggerFactory;
49 49

  
......
58 58
    private static final Logger logger = LoggerFactory
59 59
            .getLogger(LayoutInsertToolsExtension.class);
60 60
    
61
    private Layout layout = null;
61
    private LayoutPanel layout = null;
62 62

  
63 63

  
64 64
    public void initialize() {
......
151 151
    }
152 152

  
153 153
    public void execute(String s) {
154
    	 layout = (Layout) PluginServices.getMDIManager().getActiveWindow();
154
    	 layout = (LayoutPanel) PluginServices.getMDIManager().getActiveWindow();
155 155

  
156 156
         logger.debug("Comand : " + s);
157 157
         boolean insertGroupPosibility=false;
......
208 208
            return false;
209 209
        }
210 210

  
211
        if (f instanceof Layout) {
212
            return ((Layout) f).getLayoutContext().isEditable();
211
        if (f instanceof LayoutPanel) {
212
            return ((LayoutPanel) f).getLayoutContext().isEditable();
213 213
        }
214 214

  
215 215
        return false;
......
223 223
			return false;
224 224
		}
225 225

  
226
		if (f instanceof Layout) {
226
		if (f instanceof LayoutPanel) {
227 227
			return true;
228 228
		} else {
229 229
			return false;

Also available in: Unified diff