Changing the default ${filecomment} tag in 3.1 [message #211008] |
Wed, 27 July 2005 10: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 #211087 is a reply to message #211080] |
Wed, 27 July 2005 16: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.03859 seconds