Bug 97810 [preferences] Code template preference page buttons are not grayed out if invoked as project specific property page
3.1 RC1 Steps to reproduce: - Invoke Override Method on a project with no project-specific settings - Follow link to code template preference page -> Edit, Import, ... buttons are disabled, but not grayed out -> Toggling 'Enable project specific settings twice correctly grays out the buttons
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/dialogfields/TreeListDialogField.java
}
	/**
	* Removes elements from the list.
	*/
	public void removeElements(List elements) {
		if (elements.size() > 0) {
			fElements.removeAll(elements);
			if (isOkToUse(fTreeControl)) {
				fTree.remove(elements.toArray());
			}
			dialogFieldChanged();
		}
	}
	/**
	* Gets the number of elements
	*/
	public int getSize() {
		return fElements.size();
	}
	public void selectElements(ISelection selection) {
		fSelectionWhenEnabled= selection;
		if (isOkToUse(fTreeControl)) {
			fTree.setSelection(selection, true);
		}
	}
	public void selectFirstElement() {
		Object element= null;
		if (fViewerSorter != null) {
			Object[] arr= fElements.toArray();
			fViewerSorter.sort(fTree, arr);