String innerLayoutName = _layoutPage.getInnerLayoutName();
WGADesignStructureHelper helper = new WGADesignStructureHelper(designRoot);
IFolder html = helper.getTmlRoot().getFolder("html");
if (!html.exists()) {
html.create(false, true, new NullProgressMonitor());
}
IFile outerLayoutFile = html.getFile(new Path(outerLayoutName + ".tml"));
InputStream outerLayoutTemplate = null;
try {
outerLayoutTemplate = Plugin.getDefault().getResourceAsStream("resources/templates/defaultOuterLayout.template");
outerLayoutFile.create(outerLayoutTemplate, true, new NullProgressMonitor());
} finally {
if (outerLayoutTemplate != null) {
try {
outerLayoutTemplate.close();
} catch (IOException e) {
}
}
}
IFolder inner = html.getFolder("inner");
if (!inner.exists()) {
inner.create(false, true, new NullProgressMonitor());
}
IFile innerLayoutFile = inner.getFile(innerLayoutName + ".tml");
InputStream innerLayoutTemplate = null;
try {
innerLayoutTemplate = Plugin.getDefault().getResourceAsStream("resources/templates/defaultInnerLayout.template");
innerLayoutFile.create(innerLayoutTemplate, true, new NullProgressMonitor());
} finally {
if (innerLayoutTemplate != null) {
try {
innerLayoutTemplate.close();
} catch (IOException e) {