Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » javadoc generation and ${tags}(javadoc generation and ${tags})
icon3.gif  javadoc generation and ${tags} [message #832532] Fri, 30 March 2012 08:50
christophe seguinot is currently offline christophe seguinotFriend
Messages: 2
Registered: January 2012
Junior Member
Hello,

In the javadoc template of a method (java -> Code Style -> Code Template : Comments -> Methods) we can have :
/**
* ${tags}
*/

Take the following example :

private String generateJavaDoc(String exemple) {
return "javadoc";
}

By clicking on ctrl + shift + j, we get :

/**
* @param exemple
* @return
*/
private String generateJavaDoc(String exemple) {
return "javadoc";
}

Extract form the eclipse documentation :
"Comment templates can contain the variable ${tags} that will be substituted by the standard Javadoc tags (@param, @return..) for the commented element."

I would like to customize the template associated to @{tags} in order to add the @link tags.
/**
* @param exemple {@link String}
* @return {@link String}
*/
private String generateJavaDoc(String exemple) {
return "javadoc";
}

Does anyone know how to do this or at least if it's possible ?

Thanks
Best regards,
Chris
Previous Topic:Help Import website
Next Topic:Maximize/restore a view programmatically
Goto Forum:
  


Current Time: Fri Nov 21 16:52:55 GMT 2014

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

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