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
fTree.addDoubleClickListener(fTreeViewerAdapter);
			fTree.setInput(fParentElement);
			fTree.expandToLevel(fTreeExpandLevel);
			if (fViewerSorter != null) {
				fTree.setSorter(fViewerSorter);
			}
			fTreeControl.setEnabled(isEnabled());
			if (fSelectionWhenEnabled != null) {
				postSetSelection(fSelectionWhenEnabled);
			}
		}
		return fTreeControl;
	}
	/**
	* Returns the internally used table viewer.
	*/
	public TreeViewer getTreeViewer() {
		return fTree;
	}
	/*
	* Subclasses may override to specify a different style.
	*/
	protected int getTreeStyle() {
		int style= SWT.BORDER | SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL;
		return style;
	}
	protected TreeViewer createTreeViewer(Composite parent) {
		Tree tree= new Tree(parent, getTreeStyle());
		tree.setFont(parent.getFont());
		return new TreeViewer(tree);