Plugin Development - Project Menu

Hello,
      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>
  <version>1.0</version>
  <vendor>YourCompany</vendor>
  <idea-version since-build="8000"/>

  <application-components>
    <!-- Add your application components here -->
      <component>
          <implementation-class>HellowWorldComponent</implementation-class>
      </component>
  </application-components>

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

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

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



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



Attachment(s):
SVNPluginDemo.JPG
4 comments
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:

<depends>Subversion</depends>

0
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?

0
Comment actions Permalink

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

0

Please sign in to leave a comment.