1 <!DOCTYPE idea-plugin PUBLIC "Plugin/DTD" "http://plugins.intellij.net/plugin.dtd">
4 <name>ActionsSample</name>
7 <description>Sample plugin which demonstrates integration with IntelliJ IDEA action system</description>
9 <!-- Plugin version -->
10 <version>1.0</version>
12 <!-- Plugin's vendor -->
13 <vendor logo="/general/ijLogo.png">IntelliJ</vendor>
15 <!-- the IDEA build number which works with plugin -->
17 <idea-version since-build="2000" />
19 <!-- Plugin's application components -->
20 <application-components>
22 <!-- Component's implementation class -->
23 <implementation-class>myActions.ActionsPlugin</implementation-class>
25 <!-- Component's interface class -->
26 <interface-class>myActions.ActionsPlugin</interface-class>
28 </application-components>
30 <!-- Component's 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"/>
38 <action id="Actions.ActionsPlugin.HelloWorld1" class="myActions.HelloWorldAction" text="Hello World" icon ="/icons/plus.png" description=""/>
40 <group id="Actions.ActionsPlugin.SampleGroup" text="Sample _Menu" description="Sample group">
41 <reference ref="ActionsSample.ActionsPlugin.GarbageCollection"/>
43 <reference ref="Actions.ActionsPlugin.HelloWorld1"/>
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"/>
51 <!--the group below contains only the "Hello World" action defined above -->
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"/>