create a new project type

Hallo everyone,
I'm new here and just wrote my first little plugin and have some experience in eclipse plugin development.
I created my own filetype with syntax highlighting reference detection and so on - all according to this nice tutorial: http://confluence.jetbrains.com/display/IntelliJIDEA/Custom+Language+Support

Now I want to create my own project type, i.e. I want to give the user a predefined directory structure and only allow to create files of my created filetypes. Unfortunately I wasn't able to find some examples or tutorials. Thanks for any help, Sebastian

2 comments
Comment actions Permalink

I haven't tested this, but I believe you will want to use the projectTemplatesFactory extension point, where you can register your factory, then you can return your ProjectTemplate implementations.

This seems to be a new API added to IJ-12, so you can look a the Community Edition sources and the Android plugin codebase under com.android.tools.idea.wizard to see how it works - hopefully :)

0
Comment actions Permalink

I know it might not be easy to undestand but you can check: https://github.com/mtoader/google-go-lang-idea-plugin/commit/b0f9d7c6e0e7fdc0e2f41648b95dcbeda1f2d859 to see how it's done.
It will allow you to see how we are doing it for both IDEA and non-IDEA projects, check the implemetation classes.

Hope it helps.

0

Please sign in to leave a comment.