mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-13 00:53:54 +07:00
methods from swing and awt are equally known
This commit is contained in:
@@ -81,7 +81,7 @@ public class KnownElementWeigher extends ProximityWeigher {
|
||||
if (qname.startsWith("java.lang")) return 5;
|
||||
if (qname.startsWith("java.util")) return 4;
|
||||
|
||||
if (pkg.equals("javax.swing")) return 3;
|
||||
if (pkg.equals("javax.swing")) return element instanceof PsiClass ? 3 : 2;
|
||||
if (qname.startsWith("java.")) return 2;
|
||||
if (qname.startsWith("javax.")) return 1;
|
||||
if (qname.startsWith("com.")) return -1;
|
||||
|
||||
Reference in New Issue
Block a user