Bug 127861 [DataBinding] Mark API provisional
examples/org.eclipse.jface.examples.databinding/src/org/eclipse/jface/examples/databinding/contentprovider/test/TreeContentProviderTest.java
IViewerLabelProvider labelProvider = new ViewerLabelProvider() {
			public void updateLabel(ViewerLabel label, Object element) {
				if (element instanceof SimpleNode) {
					SimpleNode node = (SimpleNode) element;
					
					label.setText(node.getNodeName());
				}
				
				if (element instanceof Integer) {
					Integer node = (Integer) element;
					
					label.setText("Integer " + node);
				}
			}
		};
		
		
		tree = new TreeViewer(shell, SWT.H_SCROLL | SWT.V_SCROLL | SWT.BORDER);
		
		
		UpdatableTreeContentProvider contentProvider = new UpdatableTreeContentProvider(treeProvider);
		
		 
		
		ILabelProvider dirtyDecoratingLabelProvider = new DirtyIndicationLabelProvider(tree.getControl(),
				contentProvider, labelProvider);
		
		tree.setContentProvider(contentProvider);