Bug 186211 [Viewers] SWT/JFace: TreeViewer unable to show same image in different columns
Build ID: I20070503-1400 Steps To Reproduce: 1. see atached snippet 2. 3. More information: If the same image is returned by the label provider, the tree viewer shows the image only in the first column. A table viewer shows the image in all columns. If separate images are used for the first and for all following columns, it works.
bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/TreeViewerRow.java
} else {
			TreeItem parentItem = item.getParentItem();
			int previousIndex = parentItem.indexOf(item) - 1;
			
			TreeItem itemBefore;
			if( previousIndex >= 0 ) {
				if( sameLevel ) {
					itemBefore = parentItem.getItem(previousIndex);
				} else {
					itemBefore = findLastVisibleItem(parentItem.getItem(previousIndex));
				}
			} else {
				itemBefore = parentItem;
			}
			
			if( itemBefore != null ) {
				return new TreeViewerRow(itemBefore);
			}
		}
		
		return null;
	}
	private TreeItem findLastVisibleItem(TreeItem parentItem) {
		TreeItem rv = parentItem;
		
		while( rv.getExpanded() && rv.getItemCount() > 0 ) {
			rv = rv.getItem(rv.getItemCount()-1);
		}
		
		return rv;