I want to ask how to create a customized project type in Eclipse. For example, when I create my project, a project with some built-in read-only folders will appear and in these folders, some files are added. Any help will be appreciated.
Best regards.
I want to ask how to create a customized project type in Eclipse. For
Share
You have to create a New project wizard using the extension point org.eclipse.ui.newWizards.
Then in the implementation you could rely on an existing wizard (look the plug-in spy to get the contributor plug-in of the wizard you are using – select the contribution of the first page in the New wizard, and press Alt+Shift+F3), and override the performFinish method to create your own content. However, you could also create your brand new wizard.
For creating the project/contents, you have to use the Eclipse resources API. A quick tutorial is included in the Java AST tutorial of Lars Vogel – it is Java specific, but has some information about creating files/folders.