Bug 85845 Preference for adding method comments is project-specific even though Code Templates are not
I20050217-2000 - in a workspace with Preferences > Java > Code Style > Code Templates: "Automatically add comments" disabled, create a new java project - open the project's properties dialog and go to Java Code Style > Code Templates - enable project-specific settings and enable "Automatically add comments", then disable project-specific settings and press OK - now, content assist to override methods inserts a doc comment here: public class C { void add() {} } class D extends C { add //content assist to override add() }
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/CodeTemplateBlock.java
return PreferencesMessages.getString("CodeTemplateBlock.setterstub.label"); 
			} else if (CodeTemplateContextType.NEWTYPE_ID.equals(id)) {
				return PreferencesMessages.getString("CodeTemplateBlock.newtype.label"); 
			} else if (CodeTemplateContextType.FILECOMMENT_ID.equals(id)) {
				return PreferencesMessages.getString("CodeTemplateBlock.filecomment.label"); 
			} else if (CodeTemplateContextType.TYPECOMMENT_ID.equals(id)) {
				return PreferencesMessages.getString("CodeTemplateBlock.typecomment.label"); 
			} else if (CodeTemplateContextType.FIELDCOMMENT_ID.equals(id)) {
				return PreferencesMessages.getString("CodeTemplateBlock.fieldcomment.label"); 
			} else if (CodeTemplateContextType.METHODCOMMENT_ID.equals(id)) {
				return PreferencesMessages.getString("CodeTemplateBlock.methodcomment.label"); 
			} else if (CodeTemplateContextType.OVERRIDECOMMENT_ID.equals(id)) {
				return PreferencesMessages.getString("CodeTemplateBlock.overridecomment.label"); 
			} else if (CodeTemplateContextType.CONSTRUCTORCOMMENT_ID.equals(id)) {
				return PreferencesMessages.getString("CodeTemplateBlock.constructorcomment.label"); 
			} else if (CodeTemplateContextType.GETTERCOMMENT_ID.equals(id)) {
				return PreferencesMessages.getString("CodeTemplateBlock.gettercomment.label"); 
			} else if (CodeTemplateContextType.SETTERCOMMENT_ID.equals(id)) {
				return PreferencesMessages.getString("CodeTemplateBlock.settercomment.label"); 
			}
			return data.getTemplate().getDescription();
		}
	}	
	
	private final static int IDX_EDIT= 0;
	private final static int IDX_IMPORT= 2;
	private final static int IDX_EXPORT= 3;
	private final static int IDX_EXPORTALL= 4;
	
	protected final static Object COMMENT_NODE= PreferencesMessages.getString("CodeTemplateBlock.templates.comment.node");