EsKay
December 17, 2014, 5:50pm
1
Hello to everyone,
exist in jme a way to change the automatically generated @author tag, which is generated automatically when creating classes.
/**
*
* @author authorname
*/
public class SomeClass {...}
Instead of this, the following should always be generated
/**
*
* @author anotherauthorname
*/
public class SomeClass {...}
I can not find anything on this.
Thanks for any help. :3
Best regards
EsKay.
wezrule
December 17, 2014, 6:15pm
2
The field is specified in a Netbeans templates:
https://netbeans.org/competition/win-with-netbeans/customize-java-template.html
It is {user}
If you go to tools -> templates -> settings, you can set the user field there
1 Like
EsKay
December 17, 2014, 6:56pm
3
Thank you first for the answer. :3
Please can you give me a little bit more support.
The link does not really help me.
I use jMonkeyEndine SDK 3.0. (not NetBeans) and I can not find a field in the settings to change the user variables.
It is possible to change @author tag in
Tools/Options >> Editor[Code Template] on JavascriptDocumentation
But I have no idea how to change the user variables.
Experiments such as
@author ${NAME}
or
@author $NAME
or
@author NAME
not work.
I think I need to assign the user variable a specific value, but how?
Best regards
EsKay.
rickard
December 17, 2014, 10:21pm
4
Open Tools/Templates. Bring up the Settings of any Java type and enter “user=EsKay”
1 Like
EsKay
December 17, 2014, 10:59pm
5
You are great.
@rickard said:
Open Tools/Templates. Bring up the Settings of any Java type and enter "user=EsKay"
This works perfectly.
Thank you very much.
@wezrule >> thanks too.
You’ve already written the solution, but because of the given url location I’ve been looking in the wrong place, and the solution overlooked.
Sorry for that.
Wish you a good evening. :}
EsKay