idea-plugin / arrow.meta.ide.dsl.editor.action / AnActionSyntax / anAction

anAction

open fun AnActionSyntax.anAction(actionPerformed: (e: AnActionEvent) -> Unit, beforeActionPerformedUpdate: (e: AnActionEvent) -> Unit = Noop.effect1, update: (e: AnActionEvent) -> Unit = Noop.effect1, displayTextInToolbar: Boolean = false, setInjectedContext: (worksInInjected: Boolean) -> Boolean = { it }, useSmallerFontForTextInToolbar: Boolean = false, startInTransaction: Boolean = false, getTemplateText: String? = null): AnAction

See Also

org.jetbrains.kotlin.idea.actions.DecompileKotlinToJavaAction

open fun AnActionSyntax.anAction(icon: Icon, actionPerformed: (e: AnActionEvent) -> Unit, beforeActionPerformedUpdate: (e: AnActionEvent) -> Unit = Noop.effect1, update: (e: AnActionEvent) -> Unit = Noop.effect1, displayTextInToolbar: Boolean = false, setInjectedContext: (worksInInjected: Boolean) -> Boolean = { it }, useSmallerFontForTextInToolbar: Boolean = false, startInTransaction: Boolean = false, getTemplateText: String? = null): AnAction open fun AnActionSyntax.anAction(title: String, actionPerformed: (e: AnActionEvent) -> Unit, beforeActionPerformedUpdate: (e: AnActionEvent) -> Unit = Noop.effect1, update: (e: AnActionEvent) -> Unit = Noop.effect1, displayTextInToolbar: Boolean = false, setInjectedContext: (worksInInjected: Boolean) -> Boolean = { it }, useSmallerFontForTextInToolbar: Boolean = false, startInTransaction: Boolean = false, getTemplateText: String? = null): AnAction open fun AnActionSyntax.anAction(title: String, description: String, icon: Icon, actionPerformed: (e: AnActionEvent) -> Unit, beforeActionPerformedUpdate: (e: AnActionEvent) -> Unit = Noop.effect1, update: (e: AnActionEvent) -> Unit = Noop.effect1, displayTextInToolbar: Boolean = false, setInjectedContext: (worksInInjected: Boolean) -> Boolean = { it }, useSmallerFontForTextInToolbar: Boolean = false, startInTransaction: Boolean = false, getTemplateText: String? = null): AnAction

Do you like Arrow?

Arrow Org
<