Skip to content

Commit 1c66663

Browse files
author
Serhiy Zhovnir
committed
Fixed the issue with GetCodeTemplate class
1 parent cc40bfb commit 1c66663

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/com/magento/idea/magento2plugin/actions/generation/generator/ModuleEmailTemplatesXmlGenerator.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
import com.intellij.psi.xml.XmlFile;
1515
import com.magento.idea.magento2plugin.actions.generation.data.EmailTemplatesXmlData;
1616
import com.magento.idea.magento2plugin.actions.generation.generator.util.FindOrCreateEmailTemplatesXml;
17-
import com.magento.idea.magento2plugin.actions.generation.generator.util.GetCodeTemplate;
17+
import com.magento.idea.magento2plugin.actions.generation.generator.util.GetCodeTemplateUtil;
1818
import com.magento.idea.magento2plugin.actions.generation.generator.util.XmlFilePositionUtil;
1919
import com.magento.idea.magento2plugin.bundles.CommonBundle;
2020
import com.magento.idea.magento2plugin.bundles.ValidatorBundle;
@@ -28,7 +28,7 @@ public class ModuleEmailTemplatesXmlGenerator extends FileGenerator {
2828
private final EmailTemplatesXmlData emailTemplatesData;
2929
private final Project project;
3030
private final FindOrCreateEmailTemplatesXml findOrCreateEmailTemplatesXml;
31-
private final GetCodeTemplate getCodeTemplate;
31+
private final GetCodeTemplateUtil getCodeTemplateUtil;
3232
private final XmlFilePositionUtil positionUtil;
3333
private final PsiDocumentManager psiDocumentManager;
3434
private final CodeStyleManager codeStyleManager;
@@ -48,7 +48,7 @@ public ModuleEmailTemplatesXmlGenerator(
4848
super(project);
4949
this.project = project;
5050
this.emailTemplatesData = emailTemplatesData;
51-
this.getCodeTemplate = GetCodeTemplate.getInstance(project);
51+
this.getCodeTemplateUtil = new GetCodeTemplateUtil(project);
5252
this.findOrCreateEmailTemplatesXml = new FindOrCreateEmailTemplatesXml(project);
5353
this.positionUtil = XmlFilePositionUtil.getInstance();
5454
this.psiDocumentManager = PsiDocumentManager.getInstance(project);
@@ -75,7 +75,7 @@ public PsiFile generate(final String actionName) {
7575
final StringBuffer textBuf = new StringBuffer();
7676

7777
try {
78-
final String emailTemplateRegistrationTemplate = this.getCodeTemplate.execute(
78+
final String emailTemplateRegistrationTemplate = this.getCodeTemplateUtil.execute(
7979
EmailTemplatesXml.EMAIL_TEMPLATE_REGISTRATION,
8080
getAttributes()
8181
);

0 commit comments

Comments
 (0)