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
String[] buttonLabels= new String[] { 
			 PreferencesMessages.getString("CodeTemplateBlock.templates.edit.button"),	
			 null,  
			 PreferencesMessages.getString("CodeTemplateBlock.templates.import.button"), 
			 PreferencesMessages.getString("CodeTemplateBlock.templates.export.button"), 
			 PreferencesMessages.getString("CodeTemplateBlock.templates.exportall.button") 
		};		
		fCodeTemplateTree= new TreeListDialogField(adapter, buttonLabels, new CodeTemplateLabelProvider());
		fCodeTemplateTree.setDialogFieldListener(adapter);
		fCodeTemplateTree.setLabelText(PreferencesMessages.getString("CodeTemplateBlock.templates.label")); 
		fCodeTemplateTree.enableButton(IDX_EXPORT, false);
		fCodeTemplateTree.enableButton(IDX_EDIT, false);
		
		fCodeTemplateTree.addElement(COMMENT_NODE);
		fCodeTemplateTree.addElement(CODE_NODE);
		
		fCreateJavaDocComments= new SelectionButtonDialogField(SWT.CHECK | SWT.WRAP);
		fCreateJavaDocComments.setLabelText(PreferencesMessages.getString("CodeTemplateBlock.createcomment.label")); 
		IJavaProject javaProject= project != null ? JavaCore.create(project) : null;
		boolean createComments= Boolean.valueOf(PreferenceConstants.getPreference(PREF_JAVADOC_STUBS, javaProject)).booleanValue();
		fCreateJavaDocComments.setSelection(createComments);
		
		fCodeTemplateTree.selectFirstElement();	
	}
	public void postSetSelection(Object element) {
		fCodeTemplateTree.postSetSelection(new StructuredSelection(element));
	}
	public boolean hasProjectSpecificOptions() {
		TemplatePersistenceData[] templateData= fTemplateStore.getTemplateData();
		for (int i= 0; i < templateData.length; i++) {