Plugin API How-To?

I was just wondering if anybody has found a decent how-to for using the IDEA plugin api? I have two plugins which I need to write, however I don't have a clue where to start.

9 comments

Hi,

Place to start: http://www.intellij.org,
it is very valuable to user existing plugin sources
For Irida creating plugin module will create the most essential components of the plugin automatically.

0

Hi Maxim, thanks for the quick reply. I know about intellij.org and have looked over it however I'm still unclear for where to start. I'm probably missing it but I can't find any kind of step-by-step tutorial on that site.

I've tried looking at the source for other plugins such as the Tomcat plugin (one of the plugins I'd like to write is for an application server) but still can't figure out what parts I would need to customize. Apologies for my ignorance, I have to admit this will probably be one of the first things I've ever done client-side so I realize I'm probably missing some basic knowledge required to get started.

If there was an existing plugin I'd use that but I figure this is as good a time as any for me to learn!!

0

Rob, if you want to write an application server plugin then take a look at the Tomcat plugin and the Weblogic plugin. Tomcat plugin is quite simple (only web module), Weblogic is far more complete.
The glue between IDEA and your plugin are the components the plugin registers in the plugin.xml file. So take a look at the components registered for those two plugins and start from there.
A good start is to setup an existing plugin (Tomcat or Weblogic) to be compilable, then start to make changes for your own plugin. This way you have a runnable plugin right from the start and you can try the effects of different changes.

0

Maxim Mossienko wrote:

>Place to start: http://www.intellij.org,
>it is very valuable to user existing plugin sources

>

True, but it's not an easy path.

Now that we have the DevKit plugin, authors should start publishing
their plugin code as complete and ready to run projects.
It would make learning, and peeking, and investigating a lot easier.


Alain

0

Hi,

Ok, there were really simple plugins in IDEA 3.0.5 distribution as well as short description on what happens inside the cover,I have attached them. After that, I recommend to look for more advanced plugins sources like PsiViewer.



Attachment(s):
docs.rar
0

Thanks for your help Maxim and Martin, I'll give it a go!! :)

0

If you have any specific questions don't hesitate to ask. As long as you don't ask for a tutorial-like introduction I'm pretty sure I can give you some hints.

0

Hi Martin,

Thanks again for your help earlier. I'm currently having trouble compiling the OpenAPI because it uses what seems to be a non-standard class called "com.sun.jdi".

I've tried looking around on the internet to download this class but I can't find it anywhere, the Sun website states it should be part of the standard SDK, I'm using 1.4.2_06 and I can't find it.

Do you know where I can get this package from?

Thanks in advance,
Rob :)

0

Hi,

These classes are in tools.jar located in ]]>\lib

Rob Bradley wrote:

Hi Martin,

Thanks again for your help earlier. I'm currently having trouble compiling the OpenAPI because it uses what seems to be a non-standard class called "com.sun.jdi".

I've tried looking around on the internet to download this class but I can't find it anywhere, the Sun website states it should be part of the standard SDK, I'm using 1.4.2_06 and I can't find it.

Do you know where I can get this package from?

Thanks in advance,
Rob :)



--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0

Please sign in to leave a comment.