mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fix 'enabled' attribute loading
This commit is contained in:
+1
-1
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user