File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed
src/com/magento/idea/magento2plugin Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -71,6 +71,13 @@ public XmlCompletionContributor() {
71
71
new PhpClassCompletionProvider ()
72
72
);
73
73
74
+ // <frontend_model>completion</frontend_model>
75
+ extend (CompletionType .BASIC ,
76
+ psiElement (XmlTokenType .XML_DATA_CHARACTERS )
77
+ .inside (XmlPatterns .xmlTag ().withName (SystemXml .XML_TAG_FRONTEND_MODEL )),
78
+ new PhpClassCompletionProvider ()
79
+ );
80
+
74
81
/* File Path Completion provider */
75
82
extend (CompletionType .BASIC , psiElement (XmlTokenType .XML_ATTRIBUTE_VALUE_TOKEN )
76
83
.inside (XmlPatterns .xmlAttribute ().withName (LayoutXml .XML_ATTRIBUTE_TEMPLATE )),
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright © Magento, Inc. All rights reserved.
3
+ * See COPYING.txt for license details.
4
+ */
5
+ package com .magento .idea .magento2plugin .magento .files ;
6
+
7
+ public class SystemXml {
8
+ public static String XML_TAG_FRONTEND_MODEL = "frontend_model" ;
9
+ }
You can’t perform that action at this time.
0 commit comments