diff --git a/code_samples/plugin_sample/META-INF/plugin.xml b/code_samples/plugin_sample/META-INF/plugin.xml index 44593fcdb..ae26485e1 100644 --- a/code_samples/plugin_sample/META-INF/plugin.xml +++ b/code_samples/plugin_sample/META-INF/plugin.xml @@ -106,6 +106,9 @@ The optional "icon" attribute specifies the icon which is displayed on the toolbar button or next to the group. The optional "popup" attribute specifies how the group is presented in the menu. If a group has popup="true", actions in it are placed in a submenu; for popup="false", actions are displayed as a section of the same menu delimited by separators. --> + + + diff --git a/code_samples/plugin_sample/src/org/jetbrains/plugins/sample/actions/GroupedToDefaultAction.java b/code_samples/plugin_sample/src/org/jetbrains/plugins/sample/actions/GroupedToDefaultAction.java new file mode 100644 index 000000000..f7f2b1acb --- /dev/null +++ b/code_samples/plugin_sample/src/org/jetbrains/plugins/sample/actions/GroupedToDefaultAction.java @@ -0,0 +1,15 @@ +package org.jetbrains.plugins.sample.actions; + +import com.intellij.openapi.actionSystem.AnAction; +import com.intellij.openapi.actionSystem.AnActionEvent; +import org.jetbrains.annotations.NotNull; + +/** + * @author Anna Bulenkova + */ +public class GroupedToDefaultAction extends AnAction { + @Override + public void actionPerformed(@NotNull AnActionEvent anActionEvent) { + + } +}