From a212a1bf7213a6c1c92ab89d70f3325fb579ec81 Mon Sep 17 00:00:00 2001 From: Simon Ogorodnik Date: Sat, 15 Jul 2017 01:30:52 +0300 Subject: [PATCH] Put all internal actions under Tools | Kotlin | Internal group --- idea/src/META-INF/plugin.xml | 57 ++++++++----------- .../internal/BenchmarkCompletionAction.kt | 3 + 2 files changed, 27 insertions(+), 33 deletions(-) diff --git a/idea/src/META-INF/plugin.xml b/idea/src/META-INF/plugin.xml index 154f12fc51c..eb9497c2a40 100644 --- a/idea/src/META-INF/plugin.xml +++ b/idea/src/META-INF/plugin.xml @@ -122,48 +122,39 @@ - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + - - - - - - - - - - diff --git a/idea/src/org/jetbrains/kotlin/idea/actions/internal/BenchmarkCompletionAction.kt b/idea/src/org/jetbrains/kotlin/idea/actions/internal/BenchmarkCompletionAction.kt index 04791725010..50fe0644b03 100644 --- a/idea/src/org/jetbrains/kotlin/idea/actions/internal/BenchmarkCompletionAction.kt +++ b/idea/src/org/jetbrains/kotlin/idea/actions/internal/BenchmarkCompletionAction.kt @@ -260,4 +260,7 @@ class BenchmarkCompletionAction : AnAction() { } + override fun update(e: AnActionEvent) { + e.presentation.isEnabledAndVisible = KotlinInternalMode.enabled + } }