Revision 119 trunk/org.gvsig.app.document.layout.app/org.gvsig.app.document.layout.app.mainplugin/src/main/java/org/gvsig/app/extension/LayoutMainExtension.java
LayoutMainExtension.java | ||
---|---|---|
209 | 209 |
return; |
210 | 210 |
} |
211 | 211 |
|
212 |
LayoutDocument layoutDocument = |
|
212 |
LayoutDocument layoutDocument = (LayoutDocument) layout.getDocument(); |
|
213 |
/* |
|
213 | 214 |
(LayoutDocument) ProjectManager.getInstance().createDocument( |
214 | 215 |
DefaultLayoutManager.TYPENAME, file.getName()); |
215 |
Project p = |
|
216 |
ApplicationLocator.getManager().getProjectManager() |
|
216 |
*/ |
|
217 |
|
|
218 |
Project p = ApplicationLocator.getManager().getProjectManager() |
|
217 | 219 |
.getCurrentProject(); |
218 | 220 |
p.add(layoutDocument); |
219 | 221 |
|
220 | 222 |
layout.getLayoutControl().setTool("layoutselect"); |
223 |
|
|
224 |
LayoutManager lm = (LayoutManager) layoutDocument.getFactory(); |
|
225 |
layout.setLayoutManager(lm); |
|
226 |
|
|
221 | 227 |
PluginServices.getMDIManager().addWindow(layout); |
222 | 228 |
|
223 | 229 |
} |
Also available in: Unified diff