Getting started

Hi,

I am looking into writing a plugin but struggling to get an environment working. There's soo much information but they seem to be out of date its quite confusing.

I have IntelliJ Ultimate 11.1.3 running on a Mac.

I downloaded the source code of IntelliJ CE Leda preview 12. I managed to get it to compile and even run.

According to the docs (http://confluence.jetbrains.net/display/IDEADEV/Getting+Started+with+Plugin+Development) I need to configure a IntelliJ IDEA SDK. I could not get that to work and also I was not sure if I should do that in the Intellij CE project or a new one for my proposed plugin.

According to the instructions, "Under Platform Settings, click SDKs, and then click the plus sign icon". Ok but then Finder opens straight away and so I don't get a choice of SDK type, "From the provided list, select IntelliJ IDEA Plugin SDK".

Any help appreciated. Perhaps I could go straight to some plugin that has its source available and open that as a IntelliJ project?

Thanks

Rakesh

7 comments
Comment actions Permalink

Hello,

I've created a small video that illustrates new plugin project construction - https://dl.dropbox.com/u/1648086/video/new-plugin.m4v

Denis

0
Comment actions Permalink

Hi Denis,

thank you for taking the trouble to do the video.

The first thing is that I do not have the option of creating a Plugin Module. Am I missing a plug in?



Attachment(s):
Screen shot 2012-08-28 at 09.58.33.png
0
Comment actions Permalink

Looks like you don't have corresponding plugin enabled:

plugin.png

Denis

0
Comment actions Permalink

oh yes I do!!

Rakesh



Attachment(s):
Screen shot 2012-08-28 at 10.10.30.png
0
Comment actions Permalink

of course, now that I rebooted manually, I do!!!

I'll continue with the rest of the video and report back.

Thanks

Rakesh

0
Comment actions Permalink

Hi,

thanks for the video, it really helped me to get started. I would recommend replacing the existing video which uses IntelliJ 5!

So my next questions are:

1. I followed a blog showing how to create a tool window : http://alblue.bandlem.com/2011/08/intellij-plugin-development.html

However, after installation, opening the tab it just said Initialising. Any ideas why?

2. Is it possible to use Griffon for the Swing development? I ask because I know Groovy is already used for the main IDE.

Thanks

Rakesh

0
Comment actions Permalink

It's hard to say what exactly is wrong at your environment. You need to debug the processing locally.

I'd suggest you to check sample plugins or this tool window plugin reference page.

Regarding Griffon - I don't have real-life experiance with it but afaik it provides an abstraction layer over swing. Than yes, you can bundle Griffon binaries to your plugin and use it there.

Denis

0

Please sign in to leave a comment.