Java 类com.intellij.psi.ElementDescriptionProvider 实例源码

项目:intellij-ce-playground    文件:HighlightUsagesDescriptionLocation.java   
@Override
public ElementDescriptionProvider getDefaultProvider() {
  return new ElementDescriptionProvider() {
    @Override
    public String getElementDescription(@NotNull PsiElement element, @NotNull ElementDescriptionLocation location) {
      if (element instanceof PsiPresentableMetaData) {
        return ((PsiPresentableMetaData)element).getTypeName();
      }
      return null;
    }
  };
}
项目:tools-idea    文件:HighlightUsagesDescriptionLocation.java   
@Override
public ElementDescriptionProvider getDefaultProvider() {
  return new ElementDescriptionProvider() {
    @Override
    public String getElementDescription(@NotNull PsiElement element, @NotNull ElementDescriptionLocation location) {
      if (element instanceof PsiPresentableMetaData) {
        return ((PsiPresentableMetaData)element).getTypeName();
      }
      return null;
    }
  };
}
项目:consulo    文件:HighlightUsagesDescriptionLocation.java   
@Override
public ElementDescriptionProvider getDefaultProvider() {
  return new ElementDescriptionProvider() {
    @Override
    public String getElementDescription(@Nonnull PsiElement element, @Nonnull ElementDescriptionLocation location) {
      if (element instanceof PsiPresentableMetaData) {
        return ((PsiPresentableMetaData)element).getTypeName();
      }
      return null;
    }
  };
}
项目:intellij-ce-playground    文件:UsageViewLongNameLocation.java   
@Override
public ElementDescriptionProvider getDefaultProvider() {
  return DEFAULT_PROVIDER;
}
项目:intellij-ce-playground    文件:UsageViewNodeTextLocation.java   
@Override
public ElementDescriptionProvider getDefaultProvider() {
  return DEFAULT_PROVIDER;
}
项目:intellij-ce-playground    文件:UsageViewShortNameLocation.java   
@Override
public ElementDescriptionProvider getDefaultProvider() {
  return DEFAULT_PROVIDER;
}
项目:intellij-ce-playground    文件:DeleteNameDescriptionLocation.java   
@Override
public ElementDescriptionProvider getDefaultProvider() {
  return ourDefaultProvider;
}
项目:intellij-ce-playground    文件:RefactoringDescriptionLocation.java   
@Override
public ElementDescriptionProvider getDefaultProvider() {
  return DefaultRefactoringElementDescriptionProvider.INSTANCE;
}
项目:intellij-ce-playground    文件:NonCodeSearchDescriptionLocation.java   
@Override
public ElementDescriptionProvider getDefaultProvider() {
  return DefaultNonCodeSearchElementDescriptionProvider.INSTANCE;
}
项目:tools-idea    文件:UsageViewLongNameLocation.java   
@Override
public ElementDescriptionProvider getDefaultProvider() {
  return DEFAULT_PROVIDER;
}
项目:tools-idea    文件:UsageViewNodeTextLocation.java   
@Override
public ElementDescriptionProvider getDefaultProvider() {
  return DEFAULT_PROVIDER;
}
项目:tools-idea    文件:UsageViewShortNameLocation.java   
@Override
public ElementDescriptionProvider getDefaultProvider() {
  return DEFAULT_PROVIDER;
}
项目:tools-idea    文件:DeleteNameDescriptionLocation.java   
@Override
public ElementDescriptionProvider getDefaultProvider() {
  return ourDefaultProvider;
}
项目:tools-idea    文件:RefactoringDescriptionLocation.java   
@Override
public ElementDescriptionProvider getDefaultProvider() {
  return DefaultRefactoringElementDescriptionProvider.INSTANCE;
}
项目:tools-idea    文件:NonCodeSearchDescriptionLocation.java   
@Override
public ElementDescriptionProvider getDefaultProvider() {
  return DefaultNonCodeSearchElementDescriptionProvider.INSTANCE;
}
项目:consulo    文件:UsageViewLongNameLocation.java   
@Override
public ElementDescriptionProvider getDefaultProvider() {
  return DEFAULT_PROVIDER;
}
项目:consulo    文件:UsageViewNodeTextLocation.java   
@Override
public ElementDescriptionProvider getDefaultProvider() {
  return DEFAULT_PROVIDER;
}
项目:consulo    文件:UsageViewShortNameLocation.java   
@Override
public ElementDescriptionProvider getDefaultProvider() {
  return DEFAULT_PROVIDER;
}
项目:consulo    文件:DeleteNameDescriptionLocation.java   
@Override
public ElementDescriptionProvider getDefaultProvider() {
  return ourDefaultProvider;
}
项目:consulo    文件:RefactoringDescriptionLocation.java   
@Override
public ElementDescriptionProvider getDefaultProvider() {
  return DefaultRefactoringElementDescriptionProvider.INSTANCE;
}
项目:consulo    文件:NonCodeSearchDescriptionLocation.java   
@Override
public ElementDescriptionProvider getDefaultProvider() {
  return DefaultNonCodeSearchElementDescriptionProvider.INSTANCE;
}