IDEA Plugin Dev - Application Level Component

Card Puncher Data Processing

About

Application level component

Management

Manual Creation Steps

Implementation

Optionally, an application level component’s implementation class may implement the ApplicationComponent interface.

Dependency and instantiation
  • An application component that has no dependencies should have a constructor with no parameters which will be used for its instantiation.
  • If an application component depends on other application components, it can specify these components as constructor parameters. The IntelliJ Platform will ensure that the components are instantiated in the correct order to satisfy the dependencies.

Registration

Application level components must be registered in the

'' section of the plugin.xml file.
WizardCreation

To create and register an application component:

  • In your project, open the context menu of the destination package and click New (or press Alt+Insert).
  • In the New menu, click Application Component.
  • In the New Application Component dialog box that opens, enter the application component name, and then click OK.

The IntelliJ Platform will:

  1. generate a new Java class that implements the ApplicationComponent interface.
  2. register the newly created component in the plugin.xml file,
  3. add a node to the module tree view;
  4. open the created application component class file in the editor.





Discover More
Card Puncher Data Processing
Idea Plugin Dev - Component

A plugin is made of one of several components. There are three kinds of components: Application level components: They are created and initialized when your IDE starts up. They can be acquired...



Share this page:
Follow us:
Task Runner