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 125125 <fileBasedIndex implementation =" com.magento.idea.magento2plugin.stubs.indexes.js.MagentoLibJsIndex" />
126126 <fileBasedIndex implementation =" com.magento.idea.magento2plugin.stubs.indexes.xml.AclResourceIndex" />
127127 <fileBasedIndex implementation =" com.magento.idea.magento2plugin.stubs.indexes.xml.MenuIndex" />
128+ <fileBasedIndex implementation =" com.magento.idea.magento2plugin.stubs.indexes.xml.DeclarativeSchemaElementsIndex" />
128129 <fileBasedIndex implementation =" com.magento.idea.magento2plugin.stubs.indexes.xml.UIComponentIndex" />
129- <fileBasedIndex implementation =" com.magento.idea.magento2plugin.stubs.indexes.xml.TableAndColumnNameIndex" />
130130
131131 <codeInsight .lineMarkerProvider language =" PHP" implementationClass =" com.magento.idea.magento2plugin.linemarker.php.PluginLineMarkerProvider" />
132132 <codeInsight .lineMarkerProvider language =" PHP" implementationClass =" com.magento.idea.magento2plugin.linemarker.php.PluginTargetLineMarkerProvider" />
Original file line number Diff line number Diff line change 1616import com .intellij .util .ProcessingContext ;
1717import com .intellij .util .indexing .FileBasedIndex ;
1818import 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 ;
2020import java .util .Collection ;
2121import java .util .List ;
2222import java .util .stream .Collectors ;
@@ -58,7 +58,7 @@ protected void addCompletions(
5858 return ;
5959 }
6060 final Collection <String > tableAndColumnNames = FileBasedIndex .getInstance ().getAllKeys (
61- TableAndColumnNameIndex .KEY , position .getProject ()
61+ DeclarativeSchemaElementsIndex .KEY , position .getProject ()
6262 );
6363 final List <String > filteredColumnNames = tableAndColumnNames .stream ()
6464 .filter (name -> name .contains (targetTableName + "." )).collect (Collectors .toList ())
Original file line number Diff line number Diff line change 1212import com .intellij .psi .PsiElement ;
1313import com .intellij .util .ProcessingContext ;
1414import 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 ;
1616import java .util .Collection ;
1717import java .util .List ;
1818import java .util .stream .Collectors ;
@@ -34,7 +34,7 @@ protected void addCompletions(
3434 }
3535
3636 final Collection <String > tableNames = FileBasedIndex .getInstance ().getAllKeys (
37- TableAndColumnNameIndex .KEY , position .getProject ()
37+ DeclarativeSchemaElementsIndex .KEY , position .getProject ()
3838 );
3939 final List <String > filteredTableNames = tableNames .stream ()
4040 .filter (name -> !name .contains ("." )).collect (Collectors .toList ());
Original file line number Diff line number Diff line change 2525import com .magento .idea .magento2plugin .stubs .indexes .mftf .SectionIndex ;
2626import com .magento .idea .magento2plugin .stubs .indexes .mftf .TestNameIndex ;
2727import com .magento .idea .magento2plugin .stubs .indexes .xml .AclResourceIndex ;
28+ import com .magento .idea .magento2plugin .stubs .indexes .xml .DeclarativeSchemaElementsIndex ;
2829import com .magento .idea .magento2plugin .stubs .indexes .xml .MenuIndex ;
2930import com .magento .idea .magento2plugin .stubs .indexes .xml .PhpClassNameIndex ;
30- import com .magento .idea .magento2plugin .stubs .indexes .xml .TableAndColumnNameIndex ;
3131import com .magento .idea .magento2plugin .stubs .indexes .xml .UIComponentIndex ;
3232
3333@ SuppressWarnings ({"PMD.ClassNamingConventions" , "PMD.UseUtilityClass" })
@@ -43,7 +43,7 @@ public static void manualReindex() {
4343 // xml|di configuration
4444 PluginIndex .KEY ,
4545 VirtualTypeIndex .KEY ,
46- TableAndColumnNameIndex .KEY ,
46+ DeclarativeSchemaElementsIndex .KEY ,
4747 // layouts
4848 BlockNameIndex .KEY ,
4949 ContainerNameIndex .KEY ,
Original file line number Diff line number Diff line change 2323import com .intellij .util .indexing .FileBasedIndex ;
2424import com .magento .idea .magento2plugin .magento .files .ModuleDbSchemaXml ;
2525import 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 ;
2727import java .util .ArrayList ;
2828import java .util .Collection ;
2929import java .util .List ;
@@ -80,7 +80,7 @@ public PsiReference[] getReferencesByElement(
8080 }
8181 }
8282 final Collection <VirtualFile > files = FileBasedIndex .getInstance ()
83- .getContainingFiles (TableAndColumnNameIndex .KEY , identifier ,
83+ .getContainingFiles (DeclarativeSchemaElementsIndex .KEY , identifier ,
8484 GlobalSearchScope .getScopeRestrictedByFileTypes (
8585 GlobalSearchScope .allScope (element .getProject ()),
8686 XmlFileType .INSTANCE
Original file line number Diff line number Diff line change 2727/**
2828 * Index to store table names and column names from db_schema.xml files.
2929 */
30- public class TableAndColumnNameIndex extends FileBasedIndexExtension <String , Void > {
30+ public class DeclarativeSchemaElementsIndex extends FileBasedIndexExtension <String , Void > {
3131 public static final ID <String , Void > KEY = ID .create (
3232 "com.magento.idea.magento2plugin.stubs.indexes.db_schema.tables_and_columns" );
3333 private final KeyDescriptor <String > myKeyDescriptor = new EnumeratorStringDescriptor ();
You can’t perform that action at this time.
0 commit comments