com.intellij.psi.ElementDescriptionProvider Java Examples

The following examples show how to use com.intellij.psi.ElementDescriptionProvider. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: HighlightUsagesDescriptionLocation.java    From consulo with Apache License 2.0 5 votes vote down vote up
@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;
    }
  };
}
 
Example #2
Source File: UsageViewLongNameLocation.java    From consulo with Apache License 2.0 4 votes vote down vote up
@Override
public ElementDescriptionProvider getDefaultProvider() {
  return DEFAULT_PROVIDER;
}
 
Example #3
Source File: UsageViewNodeTextLocation.java    From consulo with Apache License 2.0 4 votes vote down vote up
@Override
public ElementDescriptionProvider getDefaultProvider() {
  return DEFAULT_PROVIDER;
}
 
Example #4
Source File: UsageViewShortNameLocation.java    From consulo with Apache License 2.0 4 votes vote down vote up
@Override
public ElementDescriptionProvider getDefaultProvider() {
  return DEFAULT_PROVIDER;
}
 
Example #5
Source File: DeleteNameDescriptionLocation.java    From consulo with Apache License 2.0 4 votes vote down vote up
@Override
public ElementDescriptionProvider getDefaultProvider() {
  return ourDefaultProvider;
}
 
Example #6
Source File: RefactoringDescriptionLocation.java    From consulo with Apache License 2.0 4 votes vote down vote up
@Override
public ElementDescriptionProvider getDefaultProvider() {
  return DefaultRefactoringElementDescriptionProvider.INSTANCE;
}
 
Example #7
Source File: NonCodeSearchDescriptionLocation.java    From consulo with Apache License 2.0 4 votes vote down vote up
@Override
public ElementDescriptionProvider getDefaultProvider() {
  return DefaultNonCodeSearchElementDescriptionProvider.INSTANCE;
}