mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
+ColorUIResource
This commit is contained in:
@@ -37,7 +37,8 @@ public class JavaColorProvider implements ElementColorProvider {
|
||||
if (type != null) {
|
||||
final PsiClass aClass = PsiTypesUtil.getPsiClass(type);
|
||||
if (aClass != null) {
|
||||
if ("java.awt.Color".equals(aClass.getQualifiedName())) {
|
||||
final String fqn = aClass.getQualifiedName();
|
||||
if ("java.awt.Color".equals(fqn) || "javax.swing.plaf.ColorUIResource".equals(fqn)) {
|
||||
return getColor(expr.getArgumentList());
|
||||
}
|
||||
}
|
||||
@@ -106,8 +107,7 @@ public class JavaColorProvider implements ElementColorProvider {
|
||||
|
||||
PsiExpression[] expr = argumentList.getExpressions();
|
||||
ColorConstructors type = getConstructorType(argumentList.getExpressionTypes());
|
||||
PsiElementFactory factory = JavaPsiFacade.getElementFactory(element.getProject());
|
||||
|
||||
|
||||
assert type != null;
|
||||
|
||||
switch (type) {
|
||||
|
||||
Reference in New Issue
Block a user