Revision 9392 trunk/applications/appgvSIG/src/com/iver/cit/gvsig/LayoutEditableControls.java
LayoutEditableControls.java | ||
---|---|---|
53 | 53 |
import com.iver.andami.PluginServices; |
54 | 54 |
import com.iver.andami.plugins.Extension; |
55 | 55 |
import com.iver.andami.ui.mdiManager.IWindow; |
56 |
import com.iver.cit.gvsig.gui.layout.Layout; |
|
57 | 56 |
import com.iver.cit.gvsig.project.documents.layout.LayoutKeyEvent; |
57 |
import com.iver.cit.gvsig.project.documents.layout.gui.Layout; |
|
58 | 58 |
|
59 | 59 |
|
60 | 60 |
/** |
... | ... | |
140 | 140 |
*/ |
141 | 141 |
public boolean isEnabled() { |
142 | 142 |
layout = (Layout) PluginServices.getMDIManager().getActiveWindow(); |
143 |
if (layout.isEditable()) |
|
143 |
if (layout.getLayoutContext().isEditable())
|
|
144 | 144 |
return true; |
145 | 145 |
return false; |
146 | 146 |
} |
Also available in: Unified diff