If you are looking to add comments to your implementing classes in Eclipse, here is the cool technique
Let us say you have class UserDAO and has method getUser()
public interface UserDAO{
public User getUser();
}
To add a comment over the method select getUser or take the cursor before getUser and press ALT + SHIFT + J It will add the comment on top of your method
/*
* @param
* @return User
*/public User getUser();
Now suppose you want to add non java doc comment in implementing class
public ClassUserDAO{
public User getUser(){
}
}
To add a comment over the method select getUser or take the cursor before getUser and press ALT + SHIFT + J . It will add the non java doc comment on top of your method
/* (non-Javadoc)
* @see com.skg.dao.UsertDAO#getUser()
*/public User getUser(){
}