Revision 9392 trunk/applications/appgvSIG/src/com/iver/cit/gvsig/FFrameViewExtension.java
FFrameViewExtension.java | ||
---|---|---|
45 | 45 |
import com.iver.andami.plugins.Extension; |
46 | 46 |
import com.iver.andami.ui.mdiManager.IWindow; |
47 | 47 |
import com.iver.cit.gvsig.fmap.DriverException; |
48 |
import com.iver.cit.gvsig.gui.layout.Layout; |
|
49 |
import com.iver.cit.gvsig.gui.layout.fframes.FFrameView; |
|
48 |
import com.iver.cit.gvsig.project.documents.layout.fframes.FFrameView; |
|
50 | 49 |
import com.iver.cit.gvsig.project.documents.layout.fframes.IFFrame; |
50 |
import com.iver.cit.gvsig.project.documents.layout.gui.Layout; |
|
51 | 51 |
|
52 | 52 |
|
53 | 53 |
|
... | ... | |
74 | 74 |
layout = (Layout) PluginServices.getMDIManager().getActiveWindow(); |
75 | 75 |
|
76 | 76 |
if (s.compareTo("VIEW_ZOOMIN") == 0) { |
77 |
layout.setTool(Layout.VIEW_ZOOMIN);
|
|
77 |
layout.getLayoutControl().setTool("layoutviewzoomin");
|
|
78 | 78 |
} else if (s.compareTo("VIEW_ZOOMOUT") == 0) { |
79 |
layout.setTool(Layout.VIEW_ZOOMOUT);
|
|
79 |
layout.getLayoutControl().setTool("layoutviewzoomout");
|
|
80 | 80 |
} else if (s.compareTo("VIEW_FULL") == 0) { |
81 | 81 |
try { |
82 |
layout.viewFull(); |
|
82 |
layout.getLayoutControl().viewFull();
|
|
83 | 83 |
} catch (DriverException e) { |
84 | 84 |
NotificationManager.addError("Error de Driver", e); |
85 | 85 |
} |
86 | 86 |
} else if (s.compareTo("VIEW_PAN") == 0) { |
87 |
layout.setTool(Layout.VIEW_PAN);
|
|
87 |
layout.getLayoutControl().setTool("layoutviewpan");
|
|
88 | 88 |
} |
89 | 89 |
} |
90 | 90 |
|
... | ... | |
93 | 93 |
*/ |
94 | 94 |
public boolean isEnabled() { |
95 | 95 |
Layout l = (Layout)PluginServices.getMDIManager().getActiveWindow(); |
96 |
IFFrame[] fframes = l.getFFrameSelected(); |
|
97 |
if (!l.isEditable()) |
|
96 |
IFFrame[] fframes = l.getLayoutContext().getFFrameSelected();
|
|
97 |
if (!l.getLayoutContext().isEditable())
|
|
98 | 98 |
return false; |
99 | 99 |
for (int i = 0; i < fframes.length; i++) { |
100 | 100 |
if (fframes[i] instanceof FFrameView) { |
Also available in: Unified diff