Revision 9392 trunk/applications/appgvSIG/src/com/iver/cit/gvsig/FFrameLegendExtension.java
FFrameLegendExtension.java | ||
---|---|---|
43 | 43 |
import com.iver.andami.PluginServices; |
44 | 44 |
import com.iver.andami.plugins.Extension; |
45 | 45 |
import com.iver.andami.ui.mdiManager.IWindow; |
46 |
import com.iver.cit.gvsig.gui.layout.Layout; |
|
47 |
import com.iver.cit.gvsig.gui.layout.fframes.FFrameLegend; |
|
48 | 46 |
import com.iver.cit.gvsig.project.documents.layout.FLayoutGraphics; |
47 |
import com.iver.cit.gvsig.project.documents.layout.fframes.FFrameLegend; |
|
49 | 48 |
import com.iver.cit.gvsig.project.documents.layout.fframes.IFFrame; |
49 |
import com.iver.cit.gvsig.project.documents.layout.gui.Layout; |
|
50 | 50 |
|
51 | 51 |
|
52 | 52 |
|
... | ... | |
82 | 82 |
*/ |
83 | 83 |
public boolean isEnabled() { |
84 | 84 |
Layout l = (Layout)PluginServices.getMDIManager().getActiveWindow(); |
85 |
IFFrame[] fframes = l.getFFrameSelected(); |
|
86 |
if (!l.isEditable()) |
|
85 |
IFFrame[] fframes = l.getLayoutContext().getFFrameSelected();
|
|
86 |
if (!l.getLayoutContext().isEditable())
|
|
87 | 87 |
return false; |
88 | 88 |
for (int i = 0; i < fframes.length; i++) { |
89 | 89 |
if (fframes[i] instanceof FFrameLegend) { |
Also available in: Unified diff