Bug 94367 cannot clear compiler compliance setting at the project level
i200505092010 Cannot disable the Java compiler project-specific preferences for some projects. Steps to reproduce: 1 - check out from CVS a Java project that has project-specific Java compiler settings enabled (example: org.eclipse.core.runtime). 2 - open the properties dialog for the project, select the Java compiler node, disable project-specific Java compiler preferences. 3 - Commit the changes by pressing "Ok" and reopen the properties dialog. It looks like the settings were not saved (project-specific settings are still enabled).
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/OptionsConfigurationBlock.java
textBox.addModifyListener(getTextModifyListener());
		GridData data= new GridData(GridData.HORIZONTAL_ALIGN_FILL);
		if (widthHint != 0) {
			data.widthHint= widthHint;
		}
		data.horizontalIndent= indent;
		data.horizontalSpan= 2;
		textBox.setLayoutData(data);
		fTextBoxes.add(textBox);
		return textBox;
	}
	
	protected ScrolledPageContent getParentScrolledComposite(Control control) {
		Control parent= control.getParent();
		while (!(parent instanceof ScrolledPageContent) && parent != null) {
			parent= parent.getParent();
		}
		if (parent instanceof ScrolledPageContent) {
			return (ScrolledPageContent) parent;
		}
		return null;
	}
	
	private void makeScrollableCompositeAware(Control control) {
		ScrolledPageContent parentScrolledComposite= getParentScrolledComposite(control);
		if (parentScrolledComposite != null) {
			parentScrolledComposite.adaptChild(control);
		}
	}