Community
Participate
Working Groups
The simple way is adding a variable ${field_javadoc_first_line} in code template.
*** Bug 280176 has been marked as a duplicate of this bug. ***
From bug 280176: If we do something here, we should support generating correct Javadoc, including @param and @return tags. This would need 2 new code template variables, e.g. - {@field_javadoc_summary}: For use in main description of getter and setter. Extracts the first sentence as specified here: http://java.sun.com/javase/6/docs/technotes/tools/windows/javadoc.html#leadingasterisks - {@field_javadoc_tag_summary}: For use after @return and @param tags. Extracts the first sentence, removes the dot at the end and makes the first character lowercase To see where the implementation would go, see references to org.eclipse.jdt.internal.corext.template.java.CodeTemplateContextType.BARE_FIELD_NAME