Reputation: 63912
I am new to Eclipse RCP development, but have read about and tutorials. I have open source project NodeEclipse-1, I'd like to add 2 files (README.md & hello-world-server.js) into newly created project. I have already located class and method that executes creation.
org.nodeclipse.ui\src\org\nodeclipse\ui\wizards\NodeProjectWizard.java
public class NodeProjectWizard extends Wizard implements INewWizard {
Where should I put my files ? I guess root of org.nodeclipse.ui project.
How to copy those files (from org.nodeclipse.ui bundle into newProjectHandle ) ?
UPDATE: What is generic answer?
Upvotes: 1
Views: 481
Reputation: 169
See below source file's generateTemplates() method.
org.nodeclipse.ui\src\org\nodeclipse\ui\wizards\NodeProjectWizard.java
I moved README.md.template and & hello-world-server.js to org.nodeclipse.ui/templates folder.
And you can also rewrite contents of files according to the situation. See rewriteReadme() method. It rewrites "${projectname}" to the name of the project that user entered.
Upvotes: 2
Reputation: 233
You only want to include that class in your project? or have you a JAR file that you want to include?
Upvotes: -1