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
/* (non-Javadoc)
		 * @see org.eclipse.jface.viewers.ILabelProvider#getImage(java.lang.Object)
		 */
		public Image getImage(Object element) {
			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;
			}
			TemplatePersistenceData data= (TemplatePersistenceData) element;
			String id=data.getId();
			if (CodeTemplateContextType.CATCHBLOCK_ID.equals(id)) {
				return PreferencesMessages.getString("CodeTemplateBlock.catchblock.label"); 
			} else if (CodeTemplateContextType.METHODSTUB_ID.equals(id)) {
				return PreferencesMessages.getString("CodeTemplateBlock.methodstub.label"); 
			} else if (CodeTemplateContextType.CONSTRUCTORSTUB_ID.equals(id)) {
				return PreferencesMessages.getString("CodeTemplateBlock.constructorstub.label"); 
			} else if (CodeTemplateContextType.GETTERSTUB_ID.equals(id)) {
				return PreferencesMessages.getString("CodeTemplateBlock.getterstub.label"); 
			} else if (CodeTemplateContextType.SETTERSTUB_ID.equals(id)) {