コード例 #1
0
 public PsiTypeLookupItem setShowPackage() {
   Object object = getObject();
   if (object instanceof PsiClass) {
     myLocationString = " (" + PsiFormatUtil.getPackageDisplayName((PsiClass) object) + ")";
   }
   return this;
 }
コード例 #2
0
 public static LookupItem setShowFQN(final LookupItem ret) {
   ret.setAttribute(
       JavaPsiClassReferenceElement.PACKAGE_NAME,
       PsiFormatUtil.getPackageDisplayName((PsiClass) ret.getObject()));
   return ret;
 }