From 4dc158af905b3da20dfe1ee41afb30e03ad6bf5a Mon Sep 17 00:00:00 2001 From: Anna Bulenkova Date: Wed, 21 Jan 2015 15:46:42 +0100 Subject: [PATCH] [code] custom group of actions --- register_actions/META-INF/plugin.xml | 4 ++++ .../tutorials/actions/SimpleGroup.java | 17 +++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 register_actions/src/org/jetbrains/tutorials/actions/SimpleGroup.java diff --git a/register_actions/META-INF/plugin.xml b/register_actions/META-INF/plugin.xml index f6e55ed52..790389cb1 100644 --- a/register_actions/META-INF/plugin.xml +++ b/register_actions/META-INF/plugin.xml @@ -63,5 +63,9 @@ the current action is inserted. --> + + + \ No newline at end of file diff --git a/register_actions/src/org/jetbrains/tutorials/actions/SimpleGroup.java b/register_actions/src/org/jetbrains/tutorials/actions/SimpleGroup.java new file mode 100644 index 000000000..001d18eaf --- /dev/null +++ b/register_actions/src/org/jetbrains/tutorials/actions/SimpleGroup.java @@ -0,0 +1,17 @@ +package org.jetbrains.tutorials.actions; + +import com.intellij.openapi.actionSystem.ActionGroup; +import com.intellij.openapi.actionSystem.AnAction; +import com.intellij.openapi.actionSystem.AnActionEvent; +import org.jetbrains.annotations.NotNull; + +/** + *  @author Anna Bulenkova + */ +public class SimpleGroup extends ActionGroup { + @NotNull + @Override + public AnAction[] getChildren(AnActionEvent anActionEvent) { + return new AnAction[0]; + } +}