// Set up the decorator
Tree tree = (Tree) treeViewer.getControl();
ItemContainer container = new TreeItemContainer(tree);
// create the label decorator
ILabelDecorator decorator = createLabelDecorator(container);
DecoratingLabelProvider dlp =
new DecoratingLabelProvider(labelProvider, decorator);