Bug 66282 Remove reference to getDefaultSettings and convert UI to Java conventions being the default
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/formatter/ProfileManager.java
for (final Iterator keyIter = fCoreKeys.iterator(); keyIter.hasNext(); ) {
			final String key= (String) keyIter.next();
			final String oldVal= (String) actualOptions.get(key);
			final String val= (String) profileOptions.get(key);
			if (!val.equals(oldVal)) {
				hasChanges= true;
				actualOptions.put(key, val);
			}
		}
		
		if (hasChanges) {
			JavaCore.setOptions(actualOptions);
		}
		
		new CommentFormattingContext().mapToStore(profile.getSettings(), getUIPreferenceStore());
		
		final String oldProfile= getUIPreferenceStore().getString(PROFILE_KEY);
		if (!profile.getID().equals(oldProfile)) {
			getUIPreferenceStore().setValue(PROFILE_KEY, profile.getID());
		}
	}
	
	
	/**
	 * Add all the built-in profiles to the map and to the list.
	 */
	private void addBuiltinProfiles(Map profiles, List profilesByName) {
		final Profile defaultProfile= new BuiltInProfile(DEFAULT_PROFILE, FormatterMessages.getString("ProfileManager.default_profile.name"), getDefaultSettings()); 
		profiles.put(defaultProfile.getID(), defaultProfile);
		profilesByName.add(defaultProfile);