14
14
import com .intellij .psi .xml .XmlFile ;
15
15
import com .magento .idea .magento2plugin .actions .generation .data .EmailTemplatesXmlData ;
16
16
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 ;
18
18
import com .magento .idea .magento2plugin .actions .generation .generator .util .XmlFilePositionUtil ;
19
19
import com .magento .idea .magento2plugin .bundles .CommonBundle ;
20
20
import com .magento .idea .magento2plugin .bundles .ValidatorBundle ;
@@ -28,7 +28,7 @@ public class ModuleEmailTemplatesXmlGenerator extends FileGenerator {
28
28
private final EmailTemplatesXmlData emailTemplatesData ;
29
29
private final Project project ;
30
30
private final FindOrCreateEmailTemplatesXml findOrCreateEmailTemplatesXml ;
31
- private final GetCodeTemplate getCodeTemplate ;
31
+ private final GetCodeTemplateUtil getCodeTemplateUtil ;
32
32
private final XmlFilePositionUtil positionUtil ;
33
33
private final PsiDocumentManager psiDocumentManager ;
34
34
private final CodeStyleManager codeStyleManager ;
@@ -48,7 +48,7 @@ public ModuleEmailTemplatesXmlGenerator(
48
48
super (project );
49
49
this .project = project ;
50
50
this .emailTemplatesData = emailTemplatesData ;
51
- this .getCodeTemplate = GetCodeTemplate . getInstance (project );
51
+ this .getCodeTemplateUtil = new GetCodeTemplateUtil (project );
52
52
this .findOrCreateEmailTemplatesXml = new FindOrCreateEmailTemplatesXml (project );
53
53
this .positionUtil = XmlFilePositionUtil .getInstance ();
54
54
this .psiDocumentManager = PsiDocumentManager .getInstance (project );
@@ -75,7 +75,7 @@ public PsiFile generate(final String actionName) {
75
75
final StringBuffer textBuf = new StringBuffer ();
76
76
77
77
try {
78
- final String emailTemplateRegistrationTemplate = this .getCodeTemplate .execute (
78
+ final String emailTemplateRegistrationTemplate = this .getCodeTemplateUtil .execute (
79
79
EmailTemplatesXml .EMAIL_TEMPLATE_REGISTRATION ,
80
80
getAttributes ()
81
81
);
0 commit comments