additional codetemplates in eclipse? [message #7516] |
Mon, 28 April 2003 14:20  |
Eclipse User |
|
|
|
Originally posted by: dexters.gmx.de
Hi,
i would like to know, if it is "easily" possible to create new
codetemplates for and integrate them into eclipse?
here is what i want to do:
i want to write my own codetemplate, so that i can select
e.g "new->java->entityBean" and eclipse asks me for a filename,
reads my codetemplate, "copies" the content to that file
and opens it up in a new editor.
do i have to write my own plugin for this? if so, appr. how many
classes do i have write (just to get a picture if the result is
worth the effort ;) ?
best regards,
dex
|
|
|
|
|
Re: additional codetemplates in eclipse? [message #8088 is a reply to message #8058] |
Mon, 28 April 2003 19:12  |
Eclipse User |
|
|
|
Oops, not CodeTemplates, 'org.eclipse.jdt.ui.CodeGeneration'
Martin Aeschlimann wrote:
>> This would be really cool :) If you would then also get the
>> (unfortunatelly still internal) typecomment to fill in at the right
>> place...
>
>
> It's not internal anymore since 2.1! Have a look at the class
> CodeTemplates.
>
> Regarding Dex's question, you can't add an new code template at the
> moment. But Jan is right, having a wizard will give you even more
> possibilities (to react on the configured settings and e.g. create
> methods).
>
> Martin
>
|
|
|
Powered by
FUDForum. Page generated in 0.06733 seconds