Bug 75316 [preferences] Provide a generic way to update dependencies
I200409280800 On the spelling preference page, check to spell-check comments Click Restore defaults The nested checkboxes under "spell-check comments" remain enabled.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/SpellingConfigurationBlock.java
fLabels.put(comboBox, labelControl);
		
		String currValue= (String)fWorkingValues.get(key);	
		comboBox.select(data.getSelection(currValue));
		
		fComboBoxes.add(comboBox);
		return comboBox;
	}
	/*
	 * @see org.eclipse.jdt.internal.ui.preferences.OptionsConfigurationBlock#createContents(org.eclipse.swt.widgets.Composite)
	 */
	protected Control createContents(final Composite parent) {
		Composite composite= new Composite(parent, SWT.NONE);
		GridLayout layout= new GridLayout(); layout.numColumns= 1;
		composite.setLayout(layout);
		final PixelConverter converter= new PixelConverter(parent);
		layout= new GridLayout();
		layout.numColumns= 3;
		final String[] trueFalse= new String[] { IPreferenceStore.TRUE, IPreferenceStore.FALSE };
		Group user= new Group(composite, SWT.NONE);
		user.setText(PreferencesMessages.getString("SpellingPreferencePage.preferences.user")); 
		user.setLayout(new GridLayout());		
		user.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
		String label= PreferencesMessages.getString("SpellingPreferencePage.enable.label"); 
		final Button master= addCheckBox(user, label, PREF_SPELLING_CHECK_SPELLING, trueFalse, 0);
		label= PreferencesMessages.getString("SpellingPreferencePage.ignore.digits.label"); 
		Control slave= addCheckBox(user, label, PREF_SPELLING_IGNORE_DIGITS, trueFalse, 20);
		createSelectionDependency(master, slave);
		label= PreferencesMessages.getString("SpellingPreferencePage.ignore.mixed.label");