Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Changing the default ${filecomment} tag in 3.1
Changing the default ${filecomment} tag in 3.1 [message #211008] Wed, 27 July 2005 14:10 Go to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Stanimir Stamenkov is currently offline Stanimir StamenkovFriend
Messages: 256
Registered: July 2009
Senior Member
/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 #211080 is a reply to message #211064] Wed, 27 July 2005 18:28 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

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


Re: Changing the default ${filecomment} tag in 3.1 [message #211087 is a reply to message #211080] Wed, 27 July 2005 20:06 Go to previous message
Eclipse UserFriend
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
Previous Topic:Extract method to existing interface?
Next Topic:Type parameter constraints
Goto Forum:
  


Current Time: Fri Apr 26 13:39:41 GMT 2024

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

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

Back to the top