Bug 13303 Create New Class: Too many comments
Now both type- and file- comment contain a message that thay can be configured in the pref page: /** * Created on 10.04.2002 * * To change this generated comment edit the template variable "filecomment": * Workbench>Preferences>Java>Templates. */ /** * @author maeschlimann * * To change this generated comment edit the template variable "typecomment": * Workbench>Preferences>Java>Templates. */ public class A { -> We should disable the option CodeGeneration->create file comment -> Path should be Window>Preferences>Java>Templates
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/CodeGenerationPreferencePage.java
return prefs.getBoolean(PREF_FILE_COMMENTS);
	}			
	
	
	private static String[] unpackOrderList(String str) {
		StringTokenizer tok= new StringTokenizer(str, ","); 
		int nTokens= tok.countTokens();
		String[] res= new String[nTokens];
		for (int i= 0; i < nTokens; i++) {
			res[i]= tok.nextToken().trim();
		}
		return res;
	}
	/**
	 * Initializes the current options (read from preference store)
	 */
	public static void initDefaults(IPreferenceStore prefs) {
		prefs.setDefault(PREF_USE_GETTERSETTER_PREFIX, false);
		prefs.setDefault(PREF_USE_GETTERSETTER_SUFFIX, false);
		prefs.setDefault(PREF_GETTERSETTER_PREFIX, "f, fg, _, m_"); 
		prefs.setDefault(PREF_GETTERSETTER_SUFFIX, "_"); 
		prefs.setDefault(PREF_JAVADOC_STUBS, true);
		prefs.setDefault(PREF_NON_JAVADOC_COMMENTS, false);
		prefs.setDefault(PREF_FILE_COMMENTS, true);
	}
	
	private SelectionButtonDialogField fUseGetterSetterPrefix;
	private SelectionButtonDialogField fUseGetterSetterSuffix;
	private StringDialogField fGetterSetterPrefix;
	private StringDialogField fGetterSetterSuffix;