Revision 9392 trunk/applications/appgvSIG/src/com/iver/cit/gvsig/LayoutCommandStackExtension.java
LayoutCommandStackExtension.java | ||
---|---|---|
43 | 43 |
import com.iver.andami.PluginServices; |
44 | 44 |
import com.iver.andami.plugins.Extension; |
45 | 45 |
import com.iver.cit.gvsig.gui.command.CommandStackDialog; |
46 |
import com.iver.cit.gvsig.gui.layout.Layout;
|
|
46 |
import com.iver.cit.gvsig.project.documents.layout.gui.Layout;
|
|
47 | 47 |
|
48 | 48 |
public class LayoutCommandStackExtension extends Extension{ |
49 | 49 |
private Layout layout=null; |
... | ... | |
55 | 55 |
layout=(Layout)PluginServices.getMDIManager().getActiveWindow(); |
56 | 56 |
if (s.equals("COMMANDSTACK")) { |
57 | 57 |
CommandStackDialog csd=new CommandStackDialog(); |
58 |
csd.setModel(layout.getEFS().getCommandRecord()); |
|
59 |
layout.getEFS().getCommandRecord().addCommandListener(layout); |
|
58 |
csd.setModel(layout.getLayoutContext().getEFS().getCommandRecord());
|
|
59 |
layout.getLayoutContext().getEFS().getCommandRecord().addCommandListener(layout);
|
|
60 | 60 |
PluginServices.getMDIManager().addWindow(csd); |
61 | 61 |
} |
62 | 62 |
} |
63 | 63 |
|
64 | 64 |
public boolean isEnabled() { |
65 | 65 |
layout = (Layout) PluginServices.getMDIManager().getActiveWindow(); |
66 |
if (layout.isEditable()) |
|
66 |
if (layout.getLayoutContext().isEditable())
|
|
67 | 67 |
return true; |
68 | 68 |
return false; |
69 | 69 |
} |
Also available in: Unified diff