From 02b1533ff4002f1015b9c26cf69256d821ddb6b1 Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Thu, 22 Feb 2024 22:34:10 +0200 Subject: Rebranded to "Trident" --- .../kotlin/me/kyren223/trident/TridentAppendAction.kt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/main/kotlin/me/kyren223/trident/TridentAppendAction.kt (limited to 'src/main/kotlin/me/kyren223/trident/TridentAppendAction.kt') diff --git a/src/main/kotlin/me/kyren223/trident/TridentAppendAction.kt b/src/main/kotlin/me/kyren223/trident/TridentAppendAction.kt new file mode 100644 index 0000000..621b9cd --- /dev/null +++ b/src/main/kotlin/me/kyren223/trident/TridentAppendAction.kt @@ -0,0 +1,15 @@ +package me.kyren223.trident + +import com.intellij.openapi.actionSystem.AnAction +import com.intellij.openapi.actionSystem.AnActionEvent +import com.intellij.openapi.actionSystem.PlatformDataKeys +import com.intellij.openapi.project.Project +import com.intellij.openapi.vfs.VirtualFile + +class TridentAppendAction : AnAction() { + override fun actionPerformed(e: AnActionEvent) { + val project: Project = e.project ?: return + val file: VirtualFile = e.getData(PlatformDataKeys.VIRTUAL_FILE) ?: return + TridentState.appendFile(project, file) + } +} -- cgit v1.3.1