Navigation: new icons for header <---> impl #KT-15842 Fixed

This commit is contained in:
Mikhail Glukhikh
2017-02-15 18:13:01 +03:00
parent 1376c8f8cf
commit 8965bb8977
6 changed files with 5 additions and 2 deletions
@@ -46,6 +46,8 @@ public interface KotlinIcons {
Icon TYPE_ALIAS = IconLoader.getIcon("/org/jetbrains/kotlin/idea/icons/typeAlias.png");
Icon SUSPEND_CALL = IconLoader.getIcon("/org/jetbrains/kotlin/idea/icons/suspendCall.png");
Icon FROM_HEADER = IconLoader.getIcon("/org/jetbrains/kotlin/idea/icons/fromHeader.png");
Icon FROM_IMPL = IconLoader.getIcon("/org/jetbrains/kotlin/idea/icons/fromImpl.png");
Icon LAUNCH = IconLoader.getIcon("/org/jetbrains/kotlin/idea/icons/kotlin_launch_configuration.png");
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 267 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 383 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 272 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 369 B

@@ -32,6 +32,7 @@ import com.intellij.psi.search.searches.ClassInheritorsSearch
import org.jetbrains.kotlin.asJava.LightClassUtil
import org.jetbrains.kotlin.asJava.toLightClass
import org.jetbrains.kotlin.descriptors.*
import org.jetbrains.kotlin.idea.KotlinIcons
import org.jetbrains.kotlin.idea.caches.resolve.findModuleDescriptor
import org.jetbrains.kotlin.idea.core.toDescriptor
import org.jetbrains.kotlin.idea.util.ProjectRootsUtil
@@ -245,7 +246,7 @@ private fun collectImplementationMarkers(declaration: KtNamedDeclaration,
result.add(LineMarkerInfo(
anchor,
anchor.textRange,
IMPLEMENTED_MARK,
KotlinIcons.FROM_HEADER,
Pass.UPDATE_OVERRIDDEN_MARKERS,
PLATFORM_IMPLEMENTATION.tooltip,
PLATFORM_IMPLEMENTATION.navigationHandler,
@@ -266,7 +267,7 @@ private fun collectHeaderMarkers(declaration: KtNamedDeclaration,
result.add(LineMarkerInfo(
anchor,
anchor.textRange,
IMPLEMENTING_MARK,
KotlinIcons.FROM_IMPL,
Pass.UPDATE_OVERRIDDEN_MARKERS,
HEADER_DECLARATION.tooltip,
HEADER_DECLARATION.navigationHandler,