Presentation: Add icons for type aliases
This commit is contained in:
@@ -135,7 +135,7 @@ public final class KotlinDescriptorIconProvider {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (descriptor instanceof TypeAliasDescriptor) {
|
if (descriptor instanceof TypeAliasDescriptor) {
|
||||||
return PlatformIcons.CLASS_ICON;
|
return KotlinIcons.TYPE_ALIAS;
|
||||||
}
|
}
|
||||||
|
|
||||||
LOG.warn("No icon for descriptor: " + descriptor);
|
LOG.warn("No icon for descriptor: " + descriptor);
|
||||||
|
|||||||
@@ -115,6 +115,7 @@ class KotlinIconProvider : IconProvider(), DumbAware {
|
|||||||
}
|
}
|
||||||
is KtProperty -> if (isVar) KotlinIcons.FIELD_VAR else KotlinIcons.FIELD_VAL
|
is KtProperty -> if (isVar) KotlinIcons.FIELD_VAR else KotlinIcons.FIELD_VAL
|
||||||
is KtClassInitializer -> KotlinIcons.CLASS_INITIALIZER
|
is KtClassInitializer -> KotlinIcons.CLASS_INITIALIZER
|
||||||
|
is KtTypeAlias -> KotlinIcons.TYPE_ALIAS
|
||||||
else -> null
|
else -> null
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -43,6 +43,7 @@ public interface KotlinIcons {
|
|||||||
Icon FIELD_VAL = IconLoader.getIcon("/org/jetbrains/kotlin/idea/icons/field_value.png");
|
Icon FIELD_VAL = IconLoader.getIcon("/org/jetbrains/kotlin/idea/icons/field_value.png");
|
||||||
Icon FIELD_VAR = IconLoader.getIcon("/org/jetbrains/kotlin/idea/icons/field_variable.png");
|
Icon FIELD_VAR = IconLoader.getIcon("/org/jetbrains/kotlin/idea/icons/field_variable.png");
|
||||||
Icon CLASS_INITIALIZER = IconLoader.getIcon("/org/jetbrains/kotlin/idea/icons/classInitializerKotlin.png");
|
Icon CLASS_INITIALIZER = IconLoader.getIcon("/org/jetbrains/kotlin/idea/icons/classInitializerKotlin.png");
|
||||||
|
Icon TYPE_ALIAS = IconLoader.getIcon("/org/jetbrains/kotlin/idea/icons/typeAlias.png");
|
||||||
|
|
||||||
Icon LAUNCH = IconLoader.getIcon("/org/jetbrains/kotlin/idea/icons/kotlin_launch_configuration.png");
|
Icon LAUNCH = IconLoader.getIcon("/org/jetbrains/kotlin/idea/icons/kotlin_launch_configuration.png");
|
||||||
}
|
}
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 1.4 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 2.0 KiB |
Reference in New Issue
Block a user