Creating a new plugin, HELP!

Hello all!

I am trying to write a plugin, and am a newbie.
For starters i just want my plugin to show up in the idea menu bar, next to "tools" option maybe.
I am working with IDEA 1.5 in a windows envt.
I have tried looking at some of the folders in the Idea_home\examples. and the basic structure that the plugins seem to follow is similar. Although the examples are really vague and i really don't know what they do.
And then i looked at the plugins folder, and they seems to be different. They just have a lib folders and then a jar file in them.
Can someone tell me what file i should start working on. Or tell me a good example to start with... pertaining to what little i am trying to achieve.

Thanks

4 comments

Hello Munira,

M> I am trying to write a plugin, and am a newbie.
M>
M> For starters i just want my plugin to show up in the idea menu bar,
M> next to "tools" option maybe.
M>
M> I am working with IDEA 1.5 in a windows envt.
M>
M> I have tried looking at some of the folders in the
M> Idea_home\examples. and the basic structure that the plugins seem to
M> follow is similar. Although the examples are really vague and i
M> really don't know what they do.
M>
M> And then i looked at the plugins folder, and they seems to be
M> different. They just have a lib folders and then a jar file in them.
M>
M> Can someone tell me what file i should start working on. Or tell me
M> a good example to start with... pertaining to what little i am trying
M> to achieve.

The starting point for plugin development is the file "Plugin Development
Readme.html" in the root of the IDEA Plugin Development Package. It will
guide you through the initial steps of creating a plugin and give pointers
to other documentation and examples available. Also, you should read the
"Plugin Development for IDEA" topic in the IDEA help file.

It's recommended to get a recent build of IDEA (5.0.1 or the latest EAP build,
build 3489) as we're constantly working on improving the documentation, and
the recent builds contain better and more complete documentation than the
original IDEA 5.0 release.

--
Dmitry Jemerov
Software Developer
JetBrains, Inc.
http://www.jetbrains.com
"Develop with pleasure!"


0

Hi Dmitry!
Thanks for your reply. Sorry i made a typo. i am using idea 5.0.1.
i tried the read me file and the plugin link there is a downlod. i downloaded that project file, and tried opening it as a new project, but gives me a "Cannot Load Module" which says that the "...plugin.iml does not exist. would you like to remove the module from project."
I have put the file in the Plugins folder under Idea_home.
So Dead end.
Have read the help file. And that is what helpd me set up the plugin module. But what after that.
Sorry but really in a fix, and can't see a way out.
Munira

0

Hello Munira,

M> Thanks for your reply. Sorry i made a typo. i am using idea 5.0.1.
M>
M> i tried the read me file and the plugin link there is a downlod. i
M> downloaded that project file, and tried opening it as a new project,
M> but gives me a "Cannot Load Module" which says that the
M> "...plugin.iml does not exist. would you like to remove the module
M> from project."

The link is not a download, but rather points to a file in the examples folder
of the plugin development package. You should open it directly from that
location, from IDEA itself.

M> Have read the help file. And that is what helpd me set up the plugin
M> module. But what after that.

That depends on what would you like to implement.

Adding an item to an IDEA menu is demonstrated in the "actions" example plugin.

--
Dmitry Jemerov
Software Developer
JetBrains, Inc.
http://www.jetbrains.com
"Develop with pleasure!"


0

hi Dmitry!
I just wanted to tell you that i managed to get the samples to work. I was in the right directions, just needed a little nudge. Thanks for providing that.
Now i can work with the templates.
You sole handedly managed to make my day/night!
Cheers!
Munira

0

Please sign in to leave a comment.