idea-plugin / arrow.meta.ide.dsl.editor.icon / IconProviderSyntax

IconProviderSyntax

interface IconProviderSyntax

IconProvider display Icon’s for Files and the StructureView. StructureViewSyntax provides APIs to create StructureViews. Check out the Docs.

Functions

addIcon registers an IconProvider. One minimal example from KotlinIconProvider, may look like this:open fun <A : PsiElement> IdeMetaPlugin.addIcon(icon: Icon, transform: (psiElement: PsiElement, flag: Int) -> A? = Noop.nullable2()): ExtensionPhase
addIcons registers an IconProvider TransformIcon<A> is an alias for Pair<Icon, (psiElement: PsiElement, flag: Int) -> A?> If only one IconProvider is desired, we may use addIcons and create those Pairs with icon.open fun <A : PsiElement> IdeMetaPlugin.addIcons(vararg values: TransformIcon<A>): ExtensionPhase
icon open fun <A : PsiElement> IconProviderSyntax.icon(icon: Icon, transform: (psiElement: PsiElement, flag: Int) -> A? = Noop.nullable2()): TransformIcon<A>
iconProvider open fun IconProviderSyntax.iconProvider(transform: (psiElement: PsiElement, flag: Int) -> Icon? = Noop.nullable2()): IconProvider

Inheritors

IdeSyntax interface IdeSyntax : IntentionSyntax, IconProviderSyntax, SyntaxHighlighterSyntax, InspectionSyntax, AnActionSyntax, ColorSettingsSyntax, HintingSyntax, LanguageSyntax, LineMarkerSyntax, LiveTemplateSyntax, NavigationSyntax, SearchSyntax, StructureViewSyntax, UsageSyntax, ExtensionProviderSyntax, DocumentationSyntax, KotlinExtensionSyntax, DialogSyntax, PopupSyntax, NotificationSyntax, ToolWindowSyntax, GotoRelatedSyntax, AnnotatorSyntax, ParserSyntax, ApplicationSyntax

Do you like Arrow?

Arrow Org
<