fix 'enabled' attribute loading

This commit is contained in:
Eugene Zhuravlev
2011-04-09 19:36:09 +02:00
parent 9ac06e8cfd
commit 58840087dc
@@ -400,7 +400,7 @@ public class FileTemplateManagerImpl extends FileTemplateManager implements Expo
final boolean reformat = Boolean.TRUE.toString().equals(child.getAttributeValue(ATTRIBUTE_REFORMAT));
template.setReformatCode(reformat);
if (template instanceof BundledFileTemplate) {
final boolean enabled = Boolean.getBoolean(child.getAttributeValue(ATTRIBUTE_REFORMAT));
final boolean enabled = Boolean.getBoolean(child.getAttributeValue(ATTRIBUTE_ENABLED, "true"));
((BundledFileTemplate)template).setEnabled(enabled);
}
}