Java 类com.intellij.util.xml.stubs.index.DomElementClassIndex 实例源码

项目:hybris-integration-intellij-idea-plugin    文件:TSMetaModelBuilder.java   
@NotNull
public TSMetaModelImpl buildModel() {
    myResult = new TSMetaModelImpl();
    myFiles.clear();

    StubIndex.getInstance().processElements(
        DomElementClassIndex.KEY,
        Items.class.getName(),
        myProject,
        ProjectScope.getAllScope(myProject),
        PsiFile.class,
        this
    );
    final TSMetaModelImpl result = myResult;
    myResult = null;
    return result;
}
项目:intellij-ce-playground    文件:ElementStubSerializer.java   
@Override
public void indexStub(@NotNull ElementStub stub, @NotNull IndexSink sink) {
  final String namespaceKey = stub.getNamespaceKey();
  if (StringUtil.isNotEmpty(namespaceKey)) {
    sink.occurrence(DomNamespaceKeyIndex.KEY, namespaceKey);
  }

  final String elementClass = stub.getElementClass();
  if (elementClass != null) {
    sink.occurrence(DomElementClassIndex.KEY, elementClass);
  }
}
项目:consulo-xml    文件:ElementStubSerializer.java   
@Override
public void indexStub(@NotNull ElementStub stub, @NotNull IndexSink sink)
{
    final String namespaceKey = stub.getNamespaceKey();
    if(StringUtil.isNotEmpty(namespaceKey))
    {
        sink.occurrence(DomNamespaceKeyIndex.KEY, namespaceKey);
    }

    final String elementClass = stub.getElementClass();
    if(elementClass != null)
    {
        sink.occurrence(DomElementClassIndex.KEY, elementClass);
    }
}