mirror of
https://github.com/JetBrains/intellij-sdk-code-samples.git
synced 2025-07-27 16:57:49 +08:00
24 lines
1.0 KiB
Markdown
24 lines
1.0 KiB
Markdown
# Kotlin Demo [][docs]
|
|
*Reference: [Kotlin for Plugin Developers in IntelliJ SDK Docs][docs:kotlin]*
|
|
|
|
## Quickstart
|
|
|
|
Simple Kotlin Demo project is an example of a minimal Kotlin-based plugin that provides the most straightforward action implemented by the [HelloAction.kt][file:HelloAction] Kotlin class.
|
|
|
|
Action, added to the Main Menu, shows a message dialog when invoked.
|
|
|
|
### Actions
|
|
|
|
| ID | Implementation | Base Action Class |
|
|
|------------------|---------------------------------|-------------------|
|
|
| `MyPlugin.Hello` | [HelloAction][file:HelloAction] | `AnAction` |
|
|
|
|
*Reference: [Action System in IntelliJ SDK Docs][docs:actions]*
|
|
|
|
|
|
[docs]: https://plugins.jetbrains.com/docs/intellij/
|
|
[docs:actions]: https://plugins.jetbrains.com/docs/intellij/basic-action-system.html
|
|
[docs:kotlin]: https://plugins.jetbrains.com/docs/intellij/kotlin.html
|
|
|
|
[file:HelloAction]: ./src/main/kotlin/org/intellij/sdk/kotlin/HelloAction.kt
|