Navigation: new icons for header <---> impl #KT-15842 Fixed
This commit is contained in:
@@ -46,6 +46,8 @@ public interface KotlinIcons {
|
|||||||
Icon TYPE_ALIAS = IconLoader.getIcon("/org/jetbrains/kotlin/idea/icons/typeAlias.png");
|
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 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");
|
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.LightClassUtil
|
||||||
import org.jetbrains.kotlin.asJava.toLightClass
|
import org.jetbrains.kotlin.asJava.toLightClass
|
||||||
import org.jetbrains.kotlin.descriptors.*
|
import org.jetbrains.kotlin.descriptors.*
|
||||||
|
import org.jetbrains.kotlin.idea.KotlinIcons
|
||||||
import org.jetbrains.kotlin.idea.caches.resolve.findModuleDescriptor
|
import org.jetbrains.kotlin.idea.caches.resolve.findModuleDescriptor
|
||||||
import org.jetbrains.kotlin.idea.core.toDescriptor
|
import org.jetbrains.kotlin.idea.core.toDescriptor
|
||||||
import org.jetbrains.kotlin.idea.util.ProjectRootsUtil
|
import org.jetbrains.kotlin.idea.util.ProjectRootsUtil
|
||||||
@@ -245,7 +246,7 @@ private fun collectImplementationMarkers(declaration: KtNamedDeclaration,
|
|||||||
result.add(LineMarkerInfo(
|
result.add(LineMarkerInfo(
|
||||||
anchor,
|
anchor,
|
||||||
anchor.textRange,
|
anchor.textRange,
|
||||||
IMPLEMENTED_MARK,
|
KotlinIcons.FROM_HEADER,
|
||||||
Pass.UPDATE_OVERRIDDEN_MARKERS,
|
Pass.UPDATE_OVERRIDDEN_MARKERS,
|
||||||
PLATFORM_IMPLEMENTATION.tooltip,
|
PLATFORM_IMPLEMENTATION.tooltip,
|
||||||
PLATFORM_IMPLEMENTATION.navigationHandler,
|
PLATFORM_IMPLEMENTATION.navigationHandler,
|
||||||
@@ -266,7 +267,7 @@ private fun collectHeaderMarkers(declaration: KtNamedDeclaration,
|
|||||||
result.add(LineMarkerInfo(
|
result.add(LineMarkerInfo(
|
||||||
anchor,
|
anchor,
|
||||||
anchor.textRange,
|
anchor.textRange,
|
||||||
IMPLEMENTING_MARK,
|
KotlinIcons.FROM_IMPL,
|
||||||
Pass.UPDATE_OVERRIDDEN_MARKERS,
|
Pass.UPDATE_OVERRIDDEN_MARKERS,
|
||||||
HEADER_DECLARATION.tooltip,
|
HEADER_DECLARATION.tooltip,
|
||||||
HEADER_DECLARATION.navigationHandler,
|
HEADER_DECLARATION.navigationHandler,
|
||||||
|
|||||||
Reference in New Issue
Block a user