Java 类com.intellij.psi.impl.source.codeStyle.JavaReferenceAdjuster 实例源码

项目:intellij-ce-playground    文件:AbstractQualifiedReference.java   
@NotNull
protected AbstractQualifiedReference shortenReferences() {
  final PsiElement refElement = resolve();
  if (refElement instanceof PsiClass) {
    final PsiQualifiedReference reference = JavaReferenceAdjuster.getClassReferenceToShorten((PsiClass)refElement, false, this);
    if (reference instanceof AbstractQualifiedReference) {
      ((AbstractQualifiedReference)reference).dequalify();
    }
  }
  return this;
}
项目:tools-idea    文件:AbstractQualifiedReference.java   
@NotNull
protected AbstractQualifiedReference shortenReferences() {
  final PsiElement refElement = resolve();
  if (refElement instanceof PsiClass) {
    final PsiQualifiedReference reference = JavaReferenceAdjuster.getClassReferenceToShorten((PsiClass)refElement, false, this);
    if (reference instanceof AbstractQualifiedReference) {
      ((AbstractQualifiedReference)reference).dequalify();
    }
  }
  return this;
}
项目:consulo-java    文件:AbstractQualifiedReference.java   
@NotNull
protected AbstractQualifiedReference shortenReferences() {
  final PsiElement refElement = resolve();
  if (refElement instanceof PsiClass) {
    final PsiQualifiedReference reference = JavaReferenceAdjuster.getClassReferenceToShorten((PsiClass)refElement, false, this);
    if (reference instanceof AbstractQualifiedReference) {
      ((AbstractQualifiedReference)reference).dequalify();
    }
  }
  return this;
}