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
* Gets the elements shown in the list.
	* The list returned is a copy, so it can be modified by the user.
	*/
	public List getElements() {
		return new ArrayList(fElements);
	}
	/**
	* Gets the element shown at the given index.
	*/
	public Object getElement(int index) {
		return fElements.get(index);
	}
	
	/**
	* Gets the index of an element in the list or -1 if element is not in list.
    */
	public int getIndexOfElement(Object elem) {
		return fElements.indexOf(elem);
	}	
	/**
	* Replace an element.
	*/
	public void replaceElement(Object oldElement, Object newElement) throws IllegalArgumentException {
		int idx= fElements.indexOf(oldElement);
		if (idx != -1) {
			fElements.set(idx, newElement);
			if (isOkToUse(fTreeControl)) {
				List selected= getSelectedElements();
				if (selected.remove(oldElement)) {
					selected.add(newElement);