[rev=nik] don't show packages for instance methods

This commit is contained in:
peter.gromov
2010-12-02 17:18:09 +03:00
parent e025da901f
commit 6cfeea68f0
@@ -233,7 +233,7 @@ public class JavaMethodCallElement extends LookupItem<PsiMethod> implements Type
}
final String qname = myContainingClass.getQualifiedName();
String location = StringUtil.isEmpty(qname) ? "" : " (" + StringUtil.getPackageName(qname) + ")";
String location = !myCanImportStatic || StringUtil.isEmpty(qname) ? "" : " (" + StringUtil.getPackageName(qname) + ")";
presentation.setStrikeout(JavaElementLookupRenderer.isToStrikeout(this));
presentation.setItemTextBold(getAttribute(HIGHLIGHTED_ATTR) != null);