Revision 31496 branches/v2_0_0_prep/applications/appgvSIG/src/org/gvsig/app/extension/LayoutEditableControls.java
LayoutEditableControls.java | ||
---|---|---|
54 | 54 |
import org.gvsig.andami.plugins.Extension; |
55 | 55 |
import org.gvsig.andami.ui.mdiManager.IWindow; |
56 | 56 |
import org.gvsig.app.project.documents.layout.LayoutKeyEvent; |
57 |
import org.gvsig.app.project.documents.layout.gui.Layout; |
|
57 |
import org.gvsig.app.project.documents.layout.gui.LayoutPanel;
|
|
58 | 58 |
|
59 | 59 |
|
60 | 60 |
|
... | ... | |
80 | 80 |
* @see org.gvsig.andami.plugins.IExtension#execute(java.lang.String) |
81 | 81 |
*/ |
82 | 82 |
public void execute(String s) { |
83 |
Layout layout = (Layout) PluginServices.getMDIManager().getActiveWindow();
|
|
83 |
LayoutPanel layout = (LayoutPanel) PluginServices.getMDIManager().getActiveWindow();
|
|
84 | 84 |
if (s.equals("PROPERTIES")) { |
85 | 85 |
if (layout.showFProperties()) { |
86 | 86 |
layout.getModel().setModified(true); |
... | ... | |
97 | 97 |
return false; |
98 | 98 |
} |
99 | 99 |
|
100 |
if (f instanceof Layout) { |
|
100 |
if (f instanceof LayoutPanel) {
|
|
101 | 101 |
return true; |
102 | 102 |
} |
103 | 103 |
return false; |
Also available in: Unified diff