mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-134502 Custom file templates are gone
This commit is contained in:
@@ -358,12 +358,12 @@ class FTManager {
|
||||
|
||||
public File getConfigRoot(boolean create) {
|
||||
final File templatesPath = myTemplatesDir.isEmpty() ? new File(myScheme.getTemplatesDir()) : new File(myScheme.getTemplatesDir(), myTemplatesDir);
|
||||
//if (create) {
|
||||
// final boolean created = templatesPath.mkdirs();
|
||||
// if (!created && !templatesPath.exists()) {
|
||||
// LOG.info("Cannot create directory: " + templatesPath.getAbsolutePath());
|
||||
// }
|
||||
//}
|
||||
if (create) {
|
||||
final boolean created = templatesPath.mkdirs();
|
||||
if (!created && !templatesPath.exists()) {
|
||||
LOG.info("Cannot create directory: " + templatesPath.getAbsolutePath());
|
||||
}
|
||||
}
|
||||
return templatesPath;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user