Bug 40952 Generate getter and setter: set field name as default return value
Unfortunately, the new Eclipse version does not create a get/set method in the form of /** * Description. * * @return string */ public String getName() { return name; } anymore but it leaves out the value of the @return param: /** * Description. * * @return */ public String getName() { return name; } But this has the bad side effect that generating javadoc generates warnings for each method that was automatically generated via "Generate getter and setter" function of eclipse. To get a clean javadoc creation back again, you have to fill in the @return value by hand which makes all the nice automatic stuff rather useless. i suggest to set the field name as the default return value: /** * Description. * * @return name */ public String getName() { return name; } which should be quite easy to implement as each get/set method is created based on this field name!
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/CodeTemplateBlock.java
return JavaPluginImages.get(JavaPluginImages.IMG_MISC_DEFAULT);
			} else if (CodeTemplates.CONSTRUCTORSTUB.equals(name)) {
				ImageDescriptorRegistry registry= JavaPlugin.getImageDescriptorRegistry();
				return registry.get(new JavaElementImageDescriptor(JavaPluginImages.DESC_MISC_PUBLIC, JavaElementImageDescriptor.CONSTRUCTOR, JavaElementImageProvider.SMALL_SIZE));
			} else if (CodeTemplates.NEWTYPE.equals(name)) {
				return JavaPluginImages.get(JavaPluginImages.IMG_OBJS_CUNIT);
			} else if (CodeTemplates.TYPECOMMENT.equals(name)) {
				return JavaPluginImages.get(JavaPluginImages.IMG_OBJS_CLASS);
			} else if (CodeTemplates.METHODCOMMENT.equals(name)) {
				return JavaPluginImages.get(JavaPluginImages.IMG_MISC_PROTECTED);
			} else if (CodeTemplates.OVERRIDECOMMENT.equals(name)) {
				ImageDescriptorRegistry registry= JavaPlugin.getImageDescriptorRegistry();
				return registry.get(new JavaElementImageDescriptor(JavaPluginImages.DESC_MISC_PROTECTED, JavaElementImageDescriptor.OVERRIDES, JavaElementImageProvider.SMALL_SIZE));
			} else if (CodeTemplates.CONSTRUCTORCOMMENT.equals(name)) {
				ImageDescriptorRegistry registry= JavaPlugin.getImageDescriptorRegistry();
				return registry.get(new JavaElementImageDescriptor(JavaPluginImages.DESC_MISC_PUBLIC, JavaElementImageDescriptor.CONSTRUCTOR, JavaElementImageProvider.SMALL_SIZE));
			}*/
			return null;
		}
		/* (non-Javadoc)
		 * @see org.eclipse.jface.viewers.ILabelProvider#getText(java.lang.Object)
		 */
		public String getText(Object element) {
			if (element == COMMENT_NODE || element == CODE_NODE) {
				return (String) element;
			}
			Template template = (Template) element;
			String name= template.getName();
			if (CodeTemplates.CATCHBLOCK.equals(name)) {
				return PreferencesMessages.getString("CodeTemplateBlock.catchblock.label");