File tree Expand file tree Collapse file tree 6 files changed +10
-10
lines changed
src/com/magento/idea/magento2plugin Expand file tree Collapse file tree 6 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 125
125
<fileBasedIndex implementation =" com.magento.idea.magento2plugin.stubs.indexes.js.MagentoLibJsIndex" />
126
126
<fileBasedIndex implementation =" com.magento.idea.magento2plugin.stubs.indexes.xml.AclResourceIndex" />
127
127
<fileBasedIndex implementation =" com.magento.idea.magento2plugin.stubs.indexes.xml.MenuIndex" />
128
+ <fileBasedIndex implementation =" com.magento.idea.magento2plugin.stubs.indexes.xml.DeclarativeSchemaElementsIndex" />
128
129
<fileBasedIndex implementation =" com.magento.idea.magento2plugin.stubs.indexes.xml.UIComponentIndex" />
129
- <fileBasedIndex implementation =" com.magento.idea.magento2plugin.stubs.indexes.xml.TableAndColumnNameIndex" />
130
130
131
131
<codeInsight .lineMarkerProvider language =" PHP" implementationClass =" com.magento.idea.magento2plugin.linemarker.php.PluginLineMarkerProvider" />
132
132
<codeInsight .lineMarkerProvider language =" PHP" implementationClass =" com.magento.idea.magento2plugin.linemarker.php.PluginTargetLineMarkerProvider" />
Original file line number Diff line number Diff line change 16
16
import com .intellij .util .ProcessingContext ;
17
17
import com .intellij .util .indexing .FileBasedIndex ;
18
18
import com .magento .idea .magento2plugin .magento .files .ModuleDbSchemaXml ;
19
- import com .magento .idea .magento2plugin .stubs .indexes .xml .TableAndColumnNameIndex ;
19
+ import com .magento .idea .magento2plugin .stubs .indexes .xml .DeclarativeSchemaElementsIndex ;
20
20
import java .util .Collection ;
21
21
import java .util .List ;
22
22
import java .util .stream .Collectors ;
@@ -58,7 +58,7 @@ protected void addCompletions(
58
58
return ;
59
59
}
60
60
final Collection <String > tableAndColumnNames = FileBasedIndex .getInstance ().getAllKeys (
61
- TableAndColumnNameIndex .KEY , position .getProject ()
61
+ DeclarativeSchemaElementsIndex .KEY , position .getProject ()
62
62
);
63
63
final List <String > filteredColumnNames = tableAndColumnNames .stream ()
64
64
.filter (name -> name .contains (targetTableName + "." )).collect (Collectors .toList ())
Original file line number Diff line number Diff line change 12
12
import com .intellij .psi .PsiElement ;
13
13
import com .intellij .util .ProcessingContext ;
14
14
import com .intellij .util .indexing .FileBasedIndex ;
15
- import com .magento .idea .magento2plugin .stubs .indexes .xml .TableAndColumnNameIndex ;
15
+ import com .magento .idea .magento2plugin .stubs .indexes .xml .DeclarativeSchemaElementsIndex ;
16
16
import java .util .Collection ;
17
17
import java .util .List ;
18
18
import java .util .stream .Collectors ;
@@ -34,7 +34,7 @@ protected void addCompletions(
34
34
}
35
35
36
36
final Collection <String > tableNames = FileBasedIndex .getInstance ().getAllKeys (
37
- TableAndColumnNameIndex .KEY , position .getProject ()
37
+ DeclarativeSchemaElementsIndex .KEY , position .getProject ()
38
38
);
39
39
final List <String > filteredTableNames = tableNames .stream ()
40
40
.filter (name -> !name .contains ("." )).collect (Collectors .toList ());
Original file line number Diff line number Diff line change 25
25
import com .magento .idea .magento2plugin .stubs .indexes .mftf .SectionIndex ;
26
26
import com .magento .idea .magento2plugin .stubs .indexes .mftf .TestNameIndex ;
27
27
import com .magento .idea .magento2plugin .stubs .indexes .xml .AclResourceIndex ;
28
+ import com .magento .idea .magento2plugin .stubs .indexes .xml .DeclarativeSchemaElementsIndex ;
28
29
import com .magento .idea .magento2plugin .stubs .indexes .xml .MenuIndex ;
29
30
import com .magento .idea .magento2plugin .stubs .indexes .xml .PhpClassNameIndex ;
30
- import com .magento .idea .magento2plugin .stubs .indexes .xml .TableAndColumnNameIndex ;
31
31
32
32
@ SuppressWarnings ({"PMD.ClassNamingConventions" , "PMD.UseUtilityClass" })
33
33
public class IndexManager {
@@ -42,7 +42,7 @@ public static void manualReindex() {
42
42
// xml|di configuration
43
43
PluginIndex .KEY ,
44
44
VirtualTypeIndex .KEY ,
45
- TableAndColumnNameIndex .KEY ,
45
+ DeclarativeSchemaElementsIndex .KEY ,
46
46
// layouts
47
47
BlockNameIndex .KEY ,
48
48
ContainerNameIndex .KEY ,
Original file line number Diff line number Diff line change 23
23
import com .intellij .util .indexing .FileBasedIndex ;
24
24
import com .magento .idea .magento2plugin .magento .files .ModuleDbSchemaXml ;
25
25
import com .magento .idea .magento2plugin .reference .xml .PolyVariantReferenceBase ;
26
- import com .magento .idea .magento2plugin .stubs .indexes .xml .TableAndColumnNameIndex ;
26
+ import com .magento .idea .magento2plugin .stubs .indexes .xml .DeclarativeSchemaElementsIndex ;
27
27
import java .util .ArrayList ;
28
28
import java .util .Collection ;
29
29
import java .util .List ;
@@ -80,7 +80,7 @@ public PsiReference[] getReferencesByElement(
80
80
}
81
81
}
82
82
final Collection <VirtualFile > files = FileBasedIndex .getInstance ()
83
- .getContainingFiles (TableAndColumnNameIndex .KEY , identifier ,
83
+ .getContainingFiles (DeclarativeSchemaElementsIndex .KEY , identifier ,
84
84
GlobalSearchScope .getScopeRestrictedByFileTypes (
85
85
GlobalSearchScope .allScope (element .getProject ()),
86
86
XmlFileType .INSTANCE
Original file line number Diff line number Diff line change 27
27
/**
28
28
* Index to store table names and column names from db_schema.xml files.
29
29
*/
30
- public class TableAndColumnNameIndex extends FileBasedIndexExtension <String , Void > {
30
+ public class DeclarativeSchemaElementsIndex extends FileBasedIndexExtension <String , Void > {
31
31
public static final ID <String , Void > KEY = ID .create (
32
32
"com.magento.idea.magento2plugin.stubs.indexes.db_schema.tables_and_columns" );
33
33
private final KeyDescriptor <String > myKeyDescriptor = new EnumeratorStringDescriptor ();
You can’t perform that action at this time.
0 commit comments