| <idea-plugin> |
| <!-- Plugin name --> |
| <name>ActionsSample</name> |
| |
| <!-- Description --> |
| <description>Sample plugin which demonstrates integration with IntelliJ IDEA action system</description> |
| |
| <!-- Plugin version --> |
| <version>1.0</version> |
| |
| <!-- Plugin's vendor --> |
| <vendor>IntelliJ</vendor> |
| |
| <!-- the IDEA build number which works with plugin --> |
| <!-- |
| <idea-version since-build="2000" /> |
| --> |
| <!-- Plugin's application components --> |
| <application-components> |
| <component> |
| <!-- Component's implementation class --> |
| <implementation-class>myActions.ActionsPlugin</implementation-class> |
| |
| <!-- Component's interface class --> |
| <interface-class>myActions.ActionsPlugin</interface-class> |
| </component> |
| </application-components> |
| |
| <!-- Component's actions --> |
| <actions> |
| <!-- We use "PluginName.ComponentName.ActionName" notation for "id" to avoid conflicts --> |
| <action id="ActionsSample.ActionsPlugin.GarbageCollection" class="myActions.GarbageCollectionAction" text="Collect _garbage" description="Run garbage collector"> |
| <keyboard-shortcut first-keystroke="control alt G" second-keystroke="C" keymap="$default"/> |
| <mouse-shortcut keystroke="ctrl alt button2" keymap="$default"/> |
| </action> |
| |
| <action id="Actions.ActionsPlugin.HelloWorld1" class="myActions.HelloWorldAction" text="Hello World" icon ="/general/add.png" description=""/> |
| |
| <group id="Actions.ActionsPlugin.SampleGroup" text="Sample _Menu" description="Sample group"> |
| <reference ref="ActionsSample.ActionsPlugin.GarbageCollection"/> |
| <separator/> |
| <reference ref="Actions.ActionsPlugin.HelloWorld1"/> |
| |
| <!--adds this group to the main menu--> |
| <add-to-group group-id="MainMenu" anchor="last"/> |
| <!--adds this group to the main toolbar before the Help action--> |
| <add-to-group group-id="MainToolBar" anchor="before" relative-to-action="HelpTopics"/> |
| </group> |
| |
| <!--the group below contains only the "Hello World" action defined above --> |
| <group> |
| <reference ref="Actions.ActionsPlugin.HelloWorld1"/> |
| <!--the group is added to the editor popup menu--> |
| <add-to-group group-id="EditorPopupMenu" anchor="after" relative-to-action="CutCopyPasteGroup"/> |
| </group> |
| |
| </actions> |
| |
| </idea-plugin> |