Alternate "New Project" wizard

Hello all,
I want to develop a plugin that works as the New Project Wizard, but it will take all its information from a XML file in our company-standard format.

How can I create a com.intellij.openapi.project.Project object ? And how do I set the necessary info like libraries, JDK, and other properties, on the new instance ?

Any info will be greatly appreciated,
Petr

3 comments
Comment actions Permalink

Just copy predefined package ZIP. Wizard will ask location of unpacking and
then unpack files, rename IPR, IWS, IML files, fix also IML entries. Then
open project.

Look at http://www.intellij.org/twiki/bin/view/Main/ProjectPluginTemplate

BTW, it a old my dream :)) I'll already started such plugin (and not once),
but in every case i must closed plugin development becouse i haven't time :)

--
Alexey Efimov, Software Engineer
Sputnik Labs,
http://www.spklabs.com
"Petr Kozelka" <no_mail@jetbrains.com> wrote in message
news:27379776.1063021598780.JavaMail.itn@is.intellij.net...

Hello all,
I want to develop a plugin that works as the New Project Wizard, but it

will take all its information from a XML file in our company-standard
format.
>

How can I create a com.intellij.openapi.project.Project object ? And how

do I set the necessary info like libraries, JDK, and other properties, on
the new instance ?
>

Any info will be greatly appreciated,
Petr



0
Comment actions Permalink

You can:
Use IML files for plugable mudules. See IPR file:
I think that you can add your ouw modules. In IML file you can specify Libraries, Sources etc. Also in IML file attached JDK. So if you create IML file you must just attach it to IPR, i guess. But i'm not sure... -- Alexey Efimov, Software Engineer Sputnik Labs, http://www.spklabs.com "Petr Kozelka" ]]> wrote in message
news:10155222.1063034123618.JavaMail.itn@is.intellij.net...

Hi Alexey, > > I am afraid that I meant something quite different. > You sent me (if I am correct) some template for creating IDEA plugins. > But what I need is, to develop one IDEA plugin which will do for me the boring job of creating new IDEA project for an existing code. > Currently, the typical scenario is: > 1. checkout files from CVS > 2. start IDEA > 3. menu File | New Project > 4. select JDK > 5. add libraries and dependencies > 6. setup other project-wide settings > > I want to simplify this sequence, because there is many projects in our company and many people working on them. > And, each project has a descriptor which already contains all the info that I currently have to set again in steps 4..6. > > So the desired scenario is: > 1. checkout files from CVS > 2. start IDEA]]> 3. menu File | My Project Wizard > -- and that's all. > > But I have no idea how to implement the steps 3..6 programatically. > > Thanks, > Petr > ]]>



0

Please sign in to leave a comment.