Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » code template
code template [message #329504] Thu, 26 June 2008 05:57 Go to next message
Eclipse UserFriend
Originally posted by: aurelrunner.hotmail.com

Hi,

I create my own wizard for create java project (using
NewJavaProjectWizardPageOne and Two). And I want to add a new file by
default in this project.
Do I use org.eclipse.pde.ui.templates extension point or
org.eclipse.ui.editors.templates?
I think that it's the first one but where can I put my Template file?

And if it's the second, we can put a template file with "include" but how
can I get it programmatically? (in order to place it at the right place in
the project and to add some parameters that I ask in an other WizardPage).

Thanks

Aurélien Pupier
Re: code template [message #329689 is a reply to message #329504] Tue, 01 July 2008 06:56 Go to previous message
Eclipse UserFriend
Aurélien Pupier wrote:
> Hi,
>
> I create my own wizard for create java project (using
> NewJavaProjectWizardPageOne and Two). And I want to add a new file by
> default in this project.
> Do I use org.eclipse.pde.ui.templates extension point or
> org.eclipse.ui.editors.templates?
> I think that it's the first one but where can I put my Template file?
Best is to make your own preference page for this. There's currently no
way to add new code templates.

Dani
>
> And if it's the second, we can put a template file with "include" but
> how can I get it programmatically? (in order to place it at the right
> place in the project and to add some parameters that I ask in an other
> WizardPage).
>
> Thanks
>
> Aurélien Pupier
>
>
Previous Topic:Re: NullPointerException in AbstractDecoratedTextEditor
Next Topic:Dynamic icons from file system in plugin
Goto Forum:
  


Current Time: Sat May 10 10:13:55 EDT 2025

Powered by FUDForum. Page generated in 0.02944 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top