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
fTreeControl.setEnabled(enabled);
		}
		updateButtonState();
	}
	/**
	* Sets a button enabled or disabled.
	*/
	public void enableButton(int index, boolean enable) {
		if (fButtonsEnabled != null && index < fButtonsEnabled.length) {
			fButtonsEnabled[index]= enable;
			updateButtonState();
		}
	}
	private boolean isButtonEnabled(ISelection sel, int index) {
		boolean extraState= getManagedButtonState(sel, index);
		return isEnabled() && extraState && fButtonsEnabled[index];
	}
	
	/**
	* Sets the elements shown in the list.
	*/
	public void setElements(List elements) {
		fElements= new ArrayList(elements);
		refresh();
		if (isOkToUse(fTreeControl)) {
			fTree.expandToLevel(fTreeExpandLevel);
		}
		dialogFieldChanged();
	}
	/**