Small changes to the "actions" sample plugin.
[idea/community.git] / samples / actions / src / META-INF / plugin.xml
1 <!DOCTYPE idea-plugin PUBLIC "Plugin/DTD" "http://plugins.intellij.net/plugin.dtd">
2 <idea-plugin>
3   <!-- Plugin name -->
4   <name>ActionsSample</name>
5
6   <!-- Description -->
7   <description>Sample plugin which demonstrates integration with IntelliJ IDEA action system</description>
8
9   <!-- Plugin version -->
10   <version>1.0</version>
11
12   <!-- Plugin's vendor -->
13   <vendor logo="/general/ijLogo.png">IntelliJ</vendor>
14
15   <!-- the IDEA build number which works with plugin -->
16     <!--
17   <idea-version since-build="2000" />
18          -->
19   <!-- Plugin's application components -->
20   <application-components>
21     <component>
22       <!-- Component's implementation class -->
23       <implementation-class>myActions.ActionsPlugin</implementation-class>
24
25       <!-- Component's interface class -->
26       <interface-class>myActions.ActionsPlugin</interface-class>
27     </component>
28   </application-components>
29
30   <!-- Component's actions -->
31   <actions>
32     <!-- We use "PluginName.ComponentName.ActionName" notation for "id" to avoid conflicts -->
33     <action id="ActionsSample.ActionsPlugin.GarbageCollection" class="myActions.GarbageCollectionAction" text="Collect _garbage" description="Run garbage collector">
34       <keyboard-shortcut first-keystroke="control alt G" second-keystroke="C" keymap="$default"/>
35       <mouse-shortcut keystroke="ctrl alt button2" keymap="$default"/>
36     </action>
37
38     <action id="Actions.ActionsPlugin.HelloWorld1" class="myActions.HelloWorldAction" text="Hello World" icon ="/icons/plus.png" description=""/>
39
40     <group id="Actions.ActionsPlugin.SampleGroup" text="Sample _Menu" description="Sample group">
41       <reference ref="ActionsSample.ActionsPlugin.GarbageCollection"/>
42       <separator/>
43        <reference ref="Actions.ActionsPlugin.HelloWorld1"/>
44
45       <!--adds this group to the main menu-->
46       <add-to-group group-id="MainMenu" anchor="last"/>
47       <!--adds this group to the main toolbar before the Help action-->
48       <add-to-group group-id="MainToolBar" anchor="before" relative-to-action="HelpTopics"/>
49     </group>
50
51     <!--the group below contains only the "Hello World" action defined above -->
52     <group>
53       <reference ref="Actions.ActionsPlugin.HelloWorld1"/>
54       <!--the group is added to the editor popup menu-->
55       <add-to-group group-id="EditorPopupMenu" anchor="after" relative-to-action="CutCopyPasteGroup"/>
56     </group>
57
58   </actions>
59
60 </idea-plugin>