Changing the default ${filecomment} tag in 3.1 [message #211008] |
Wed, 27 July 2005 14:10 |
Eclipse User |
|
|
|
Originally posted by: cbwilliamsva.gmail.com
I used to be able to very easily change the default filecomment to include
my copyright notice automatically in new files. Now in 3.1 I can't seem to
find this. I know it is a workspace-specific setting, but where can I
change it?
Also, can I copy settings from one workspace to another?
Thanks,
Chuck
|
|
|
Re: Changing the default ${filecomment} tag in 3.1 [message #211021 is a reply to message #211008] |
Wed, 27 July 2005 14:17 |
Eclipse User |
|
|
|
Originally posted by: olivier_thomann.NOca.ibm.comSPAM
Chuck Williams a écrit :
> I used to be able to very easily change the default filecomment to
> include my copyright notice automatically in new files. Now in 3.1 I
> can't seem to find this. I know it is a workspace-specific setting, but
> where can I change it?
Go to Window>Preferences>Java>Code Style>Code Templates>Comments>Files.
This should be what you are looking for.
--
Olivier
|
|
|
Re: Changing the default ${filecomment} tag in 3.1 [message #211064 is a reply to message #211021] |
Wed, 27 July 2005 17:59 |
Eclipse User |
|
|
|
Originally posted by: cbwilliamsva.gmail.com
Olivier,
That's not what I'm looking for. I've been there (Window -> Preferences ->
Java -> Code Style -> Code Templates -> Code -> New java file) and this is
the setting:
${filecomment}
${package_declaration}
${typecomment}
${type_declaration}
I need to know how to change the text that gets substituted for
${filecomment}
Thanks in advance,
Chuck
|
|
|
Re: Changing the default ${filecomment} tag in 3.1 [message #211072 is a reply to message #211064] |
Wed, 27 July 2005 18:16 |
|
/Chuck Williams/:
> That's not what I'm looking for. I've been there (Window -> Preferences
> -> Java -> Code Style -> Code Templates -> Code -> New java file) and
> this is the setting:
>
> ${filecomment}
> ${package_declaration}
>
> ${typecomment}
> ${type_declaration}
>
> I need to know how to change the text that gets substituted for
> ${filecomment}
That's exactly how Olivier has replied you (please quote relevant
parts from the posts you're replying to). You should found it is
like that if you have tried it by now.
/Olivier Thomann/:
> Go to Window>Preferences>Java>Code Style>Code Templates>Comments>Files.
--
Stanimir
|
|
|
|
Re: Changing the default ${filecomment} tag in 3.1 [message #211087 is a reply to message #211080] |
Wed, 27 July 2005 20:06 |
Eclipse User |
|
|
|
Originally posted by: cbwilliamsva.gmail.com
Paul,
Thanks, that made it clear. BTW, there is nothing in the documentation
that connects the Code Templates -> Comments -> File to the $(filecomment}
variable.
Regards,
Chuck
Paul Webster wrote:
> Chuck Williams wrote:
>> Olivier,
>>
>> That's not what I'm looking for. I've been there (Window -> Preferences
>> -> Java -> Code Style -> Code Templates -> Code -> New java file) and
>> this is the setting:
>>
>> ${filecomment}
>> ${package_declaration}
>>
>> ${typecomment}
>> ${type_declaration}
>>
>> I need to know how to change the text that gets substituted for
>> ${filecomment}
>>
>> Thanks in advance,
>> Chuck
>>
> filecomment is replaced by the code template
> Window>Preferences>Java>Code Style>Code Templates>Comments>Files
> I found that out after I exported all of the templates :-)
> But it showed up in my new classes after I chose "Generate comments" in
> the new Java class wizard.
> PW
|
|
|
Powered by
FUDForum. Page generated in 0.03415 seconds