Revision 6880 trunk/applications/appgvSIG/src/com/iver/cit/gvsig/LayoutCommandStackExtension.java
LayoutCommandStackExtension.java | ||
---|---|---|
52 | 52 |
} |
53 | 53 |
|
54 | 54 |
public void execute(String s) { |
55 |
layout=(Layout)PluginServices.getMDIManager().getActiveView();
|
|
55 |
layout=(Layout)PluginServices.getMDIManager().getActiveWindow();
|
|
56 | 56 |
if (s.equals("COMMANDSTACK")) { |
57 | 57 |
CommandStackDialog csd=new CommandStackDialog(); |
58 | 58 |
csd.setModel(layout.getEFS().getCommandRecord()); |
59 | 59 |
layout.getEFS().getCommandRecord().addCommandListener(layout); |
60 |
PluginServices.getMDIManager().addView(csd);
|
|
60 |
PluginServices.getMDIManager().addWindow(csd);
|
|
61 | 61 |
} |
62 | 62 |
} |
63 | 63 |
|
64 | 64 |
public boolean isEnabled() { |
65 |
layout = (Layout) PluginServices.getMDIManager().getActiveView();
|
|
65 |
layout = (Layout) PluginServices.getMDIManager().getActiveWindow();
|
|
66 | 66 |
if (layout.isEditable()) |
67 | 67 |
return true; |
68 | 68 |
return false; |
69 | 69 |
} |
70 | 70 |
|
71 | 71 |
public boolean isVisible() { |
72 |
if (PluginServices.getMDIManager().getActiveView() instanceof Layout){
|
|
72 |
if (PluginServices.getMDIManager().getActiveWindow() instanceof Layout){
|
|
73 | 73 |
return true; |
74 | 74 |
} |
75 | 75 |
return false; |
Also available in: Unified diff