Java 类com.intellij.psi.stubs.StubIndexExtension 实例源码

项目:intellij-ce-playground    文件:PropertiesCoreEnvironment.java   
public ApplicationEnvironment(CoreApplicationEnvironment appEnvironment) {
  appEnvironment.registerFileType(PropertiesFileType.INSTANCE, "properties");
  appEnvironment.addExplicitExtension(SyntaxHighlighterFactory.LANGUAGE_FACTORY, PropertiesLanguage.INSTANCE,
                                      new PropertiesSyntaxHighlighterFactory());
  appEnvironment.addExplicitExtension(LanguageParserDefinitions.INSTANCE, PropertiesLanguage.INSTANCE, new PropertiesParserDefinition());
  appEnvironment.addExtension(FileBasedIndexExtension.EXTENSION_POINT_NAME, new XmlPropertiesIndex());
  appEnvironment.addExtension(StubIndexExtension.EP_NAME, new PropertyKeyIndex());

  appEnvironment.registerApplicationService(PropertiesQuickFixFactory.class, new EmptyPropertiesQuickFixFactory());
  appEnvironment.registerApplicationService(PropertiesRefactoringSettings.class, new PropertiesRefactoringSettings());
  appEnvironment.addExplicitExtension(LanguageAnnotators.INSTANCE, PropertiesLanguage.INSTANCE, new PropertiesAnnotator());
  appEnvironment.addExplicitExtension(LanguageFindUsages.INSTANCE, PropertiesLanguage.INSTANCE, new PropertiesFindUsagesProvider());

  appEnvironment.addExplicitExtension(LanguageASTFactory.INSTANCE, PropertiesLanguage.INSTANCE, new PropertiesASTFactory());
  appEnvironment.addExplicitExtension(LanguageFolding.INSTANCE, PropertiesLanguage.INSTANCE, new PropertiesFoldingBuilder());
  appEnvironment.addExplicitExtension(ElementManipulators.INSTANCE, PropertyImpl.class, new PropertyManipulator());
  appEnvironment.addExplicitExtension(ElementManipulators.INSTANCE, PropertyKeyImpl.class, new PropertyKeyManipulator());
  appEnvironment.addExplicitExtension(ElementManipulators.INSTANCE, PropertyValueImpl.class, new PropertyValueManipulator());

  final StubElementTypeHolderEP stubElementTypeHolderBean = new StubElementTypeHolderEP();
  stubElementTypeHolderBean.holderClass = PropertiesElementTypes.class.getName();
  appEnvironment.addExtension(StubElementTypeHolderEP.EP_NAME, stubElementTypeHolderBean);

  appEnvironment.addExplicitExtension(LanguageCommenters.INSTANCE, PropertiesLanguage.INSTANCE, new PropertiesCommenter());
  appEnvironment.addExplicitExtension(IdIndexers.INSTANCE, PropertiesFileType.INSTANCE, new PropertiesIdIndexer());
  appEnvironment.addExplicitExtension(TodoIndexers.INSTANCE, PropertiesFileType.INSTANCE, new PropertiesTodoIndexer());

  appEnvironment.addExtension(IconProvider.EXTENSION_POINT_NAME, new XmlPropertiesIconProvider());
}
项目:consulo-csharp    文件:DelegateMethodIndex.java   
public static DelegateMethodIndex getInstance()
{
    return StubIndexExtension.EP_NAME.findExtension(DelegateMethodIndex.class);
}
项目:consulo-csharp    文件:ExtensionMethodIndex.java   
public static ExtensionMethodIndex getInstance()
{
    return StubIndexExtension.EP_NAME.findExtension(ExtensionMethodIndex.class);
}
项目:consulo-csharp    文件:TypeWithExtensionMethodsIndex.java   
@NotNull
public static TypeWithExtensionMethodsIndex getInstance()
{
    return StubIndexExtension.EP_NAME.findExtension(TypeWithExtensionMethodsIndex.class);
}
项目:consulo-csharp    文件:TypeIndex.java   
@NotNull
public static TypeIndex getInstance()
{
    return StubIndexExtension.EP_NAME.findExtension(TypeIndex.class);
}
项目:consulo-csharp    文件:MethodIndex.java   
public static MethodIndex getInstance()
{
    return StubIndexExtension.EP_NAME.findExtension(MethodIndex.class);
}
项目:consulo-csharp    文件:TypeByQNameIndex.java   
public static TypeByQNameIndex getInstance()
{
    return StubIndexExtension.EP_NAME.findExtension(TypeByQNameIndex.class);
}
项目:consulo-csharp    文件:AttributeListIndex.java   
@NotNull
public static AttributeListIndex getInstance()
{
    return StubIndexExtension.EP_NAME.findExtension(AttributeListIndex.class);
}
项目:consulo-csharp    文件:EventIndex.java   
@NotNull
public static EventIndex getInstance()
{
    return StubIndexExtension.EP_NAME.findExtension(EventIndex.class);
}
项目:consulo-csharp    文件:ExtendsListIndex.java   
@NotNull
public static ExtendsListIndex getInstance()
{
    return StubIndexExtension.EP_NAME.findExtension(ExtendsListIndex.class);
}
项目:consulo-csharp    文件:MemberByAllNamespaceQNameIndex.java   
public static MemberByAllNamespaceQNameIndex getInstance()
{
    return StubIndexExtension.EP_NAME.findExtension(MemberByAllNamespaceQNameIndex.class);
}
项目:consulo-csharp    文件:PropertyIndex.java   
public static PropertyIndex getInstance()
{
    return StubIndexExtension.EP_NAME.findExtension(PropertyIndex.class);
}
项目:consulo-csharp    文件:MemberByNamespaceQNameIndex.java   
public static MemberByNamespaceQNameIndex getInstance()
{
    return StubIndexExtension.EP_NAME.findExtension(MemberByNamespaceQNameIndex.class);
}
项目:consulo-csharp    文件:TypeByVmQNameIndex.java   
@NotNull
public static TypeByVmQNameIndex getInstance()
{
    return StubIndexExtension.EP_NAME.findExtension(TypeByVmQNameIndex.class);
}
项目:consulo-csharp    文件:FieldIndex.java   
public static FieldIndex getInstance()
{
    return StubIndexExtension.EP_NAME.findExtension(FieldIndex.class);
}
项目:consulo-dotnet    文件:MsilExtendsListIndex.java   
@NotNull
public static MsilExtendsListIndex getInstance()
{
    return StubIndexExtension.EP_NAME.findExtension(MsilExtendsListIndex.class);
}