Skip to content

Commit

Permalink
Merge pull request #9 from thinkAmi-sandbox/feature/add_hello_world_p…
Browse files Browse the repository at this point in the history
…lugin

add hello world plugin
  • Loading branch information
thinkAmi committed Feb 21, 2024
2 parents a86c249 + bb3da48 commit c07e1f3
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
@@ -0,0 +1,13 @@
package com.github.thinkami.hellojetbrainsplugin.actions

import com.intellij.openapi.actionSystem.AnAction
import com.intellij.openapi.actionSystem.AnActionEvent
import com.intellij.openapi.ui.Messages

class HelloAction: AnAction() {
override fun actionPerformed(e: AnActionEvent) {
Messages.showMessageDialog(buildString {
append("ハロー")
}, "ワールド", null)
}
}
9 changes: 9 additions & 0 deletions src/main/resources/META-INF/plugin.xml
Expand Up @@ -15,4 +15,13 @@
<applicationListeners>
<listener class="com.github.thinkami.hellojetbrainsplugin.listeners.MyApplicationActivationListener" topic="com.intellij.openapi.application.ApplicationActivationListener"/>
</applicationListeners>

<actions>
<action id="com.github.thinkami.hellojetbrainsplugin.actions.HelloAction"
class="com.github.thinkami.hellojetbrainsplugin.actions.HelloAction"
text="Hello Action"
description="hello world action">
<add-to-group group-id="EditorPopupMenu" anchor="first" />
</action>
</actions>
</idea-plugin>

0 comments on commit c07e1f3

Please sign in to comment.