Plugin Development - Project Menu

      I am creating an intellij plugin which adds new options under the Subversion menu (Subversion can be selected by right clicking on the project - snapshot attached). To start with I created an application component and an action. My plugin.xml looks like below

<idea-plugin version="2">
  <name>Plugin name here</name>
  <description>short description of the plugin</description>
  <idea-version since-build="8000"/>

    <!-- Add your application components here -->

    <!-- Add your project components here -->

    <!-- Add your actions here -->
      <action id="helloWorld" text="Hello World"
              description="hello world">
          <add-to-group group-id="SubversionGroup" anchor="last"/>

  <extensions defaultExtensionNs="com.intellij">
    <!-- Add your extensions here -->

When I run my plugin, a new Intellij opens up as expected. I open a project to validate if the new option "Hello World" appears under the subversion menu (I have selected the version control of the newly opened project as "Subversion"). It does not appear and neither are there any errors on the console.

Can someone let me know if I am missing anything? Also what are the steps that should be followed to install the newly developed plugin in intellij after creating its jar.

Thanks in advance.

Message was edited by: Amit Shah : Updated the image

Comment actions Permalink

The problem is in plugin loading order - your plugin starts before Subversion plugin, and SubversionGroup is not created.
Add to your plugin.xml this:


Comment actions Permalink

Thank you very much. Adding the <depends> clause resolved the current problem.
One thing I didn't understand (and took a good amount of time) is when I run my custom plugin application, a new intellij application is spawned which has all the custom plugins installed which I had earlier executed by running them?
Also do you know the location where these plugin jars are copied to for the newly spawned intellij application?

Comment actions Permalink

~/.IdeaIC10/system/plugins-sandbox/plugins or ~/.IntelliJIdea10/system/plugins-sandbox/plugins if you use ultimate edition.


Please sign in to leave a comment.