[code] DefaultActionGroup

This commit is contained in:
Anna Bulenkova 2014-12-08 09:25:38 +01:00
parent 8bdb19504b
commit e5ecd5b828
2 changed files with 18 additions and 0 deletions

View File

@ -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 "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 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. --> are placed in a submenu; for popup="false", actions are displayed as a section of the same menu delimited by separators. -->
<group id="DummyDefaultActionGroup" text="Default action group">
<action class="org.jetbrains.plugins.sample.actions.GroupedToDefaultAction" id="PluginSample.GroupedToDefaultAction"/>
</group>
<group class="org.jetbrains.plugins.sample.actions.DummyActionGroup" id="DummyActionGroup" text="Action Group" <group class="org.jetbrains.plugins.sample.actions.DummyActionGroup" id="DummyActionGroup" text="Action Group"
description="Illustration of an action group" description="Illustration of an action group"
icon="icons/testgroup.png" popup="true"> icon="icons/testgroup.png" popup="true">

View File

@ -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) {
}
}