breandan 801b0b640f Migrate links to .java classes from GitHub to Upsource.
The first step in migrating the documentation to Upsource. This has the added benefit of tying us to a specific version in case of code drift. Future migrations will be required in order to use method links (when supported).

Search:  \(https://github.com/JetBrains/intellij-community/blob/master/(.+\.java)\)
Replace: \(https://upsource.jetbrains.com/idea-community/file/1731d054af4ca27aa827c03929e27eeb0e6a8366/$1\)
2015-08-18 16:40:09 -04:00

14 lines
803 B
Markdown

---
title: Plugin Actions
---
*Intellij IDEA* provides the concept of _actions_.
An action is a class, derived from the
[AnAction](https://upsource.jetbrains.com/idea-community/file/1731d054af4ca27aa827c03929e27eeb0e6a8366/platform/editor-ui-api/src/com/intellij/openapi/actionSystem/AnAction.java)
class, whose `actionPerformed` method is called when the menu item or toolbar button is selected.
The system of actions allows plugins to add their own items to IDEA menus and toolbars.
Actions are organized into groups, which, in turn, can contain other groups.
A group of actions can form a toolbar or a menu. Subgroups of the group can form submenus of the menu.
You can find detailed information on how to create and register your actions in
[IntelliJ IDEA Action System](/basics/action_system.md).