messages.add(new Status(Status.ERROR, Plugin.PLUGIN_ID, "No design folder selected."));
} else {
WGADesignStructureHelper helper = new WGADesignStructureHelper(designRoot);
IFolder html = helper.getTmlRoot().getFolder("html");
if (html.exists()) {
IFile outerLayoutFile = html.getFile(new Path(getOuterLayoutName() + ".tml"));
if (outerLayoutFile.exists()) {
messages.add(new Status(Status.ERROR, Plugin.PLUGIN_ID, "A module with name '" + outerLayoutName + "' already exists in '" + outerLayoutFile.getParent().getFullPath().toString() + "'."));
}
IFile innerLayoutFile = html.getFile(new Path("inner").append(getInnerLayoutName() + ".tml"));
if (innerLayoutFile.exists()) {
messages.add(new Status(Status.ERROR, Plugin.PLUGIN_ID, "A module with name '" + innerLayoutName + "' already exists in '" + innerLayoutFile.getParent().getFullPath().toString() + "'."));
}
}
}
return messages;
}