mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Add additional diagnostic to investigate EA-51665 (assert: FTManager.createAndStoreBundledTemplate).
This commit is contained in:
@@ -101,4 +101,9 @@ public final class BundledFileTemplate extends FileTemplateBase {
|
||||
public boolean isTextModified() {
|
||||
return !getText().equals(getDefaultText());
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return myDefaultTemplate.getTemplateURL() == null ? "" : myDefaultTemplate.getTemplateURL().toString();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -188,7 +188,8 @@ class FTManager {
|
||||
final FileTemplateBase previous = myTemplates.put(qName, bundled);
|
||||
mySortedTemplates = null;
|
||||
|
||||
LOG.assertTrue(previous == null, "Duplicate bundled template " + qName);
|
||||
LOG.assertTrue(previous == null, "Duplicate bundled template " + qName +
|
||||
" [" + template.getTemplateURL() + ", " + previous + ']');
|
||||
return bundled;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user