Bug 111631 [Viewers] TreeViewer needs more TableViewer API
As the TreeViewer is meant to replace the TableTreeViewer we need to add some of the API that the TableViewer had to it so that it can be used like a table. public void insert(Object element, int position) public void add(Object[] objects) Both need to be added.
bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/AbstractTreeViewer.java
break;
                    }
                    data = items[mid].getData();
                    compare = internalCompare(sorter, parentPath, data, element);
                }
                return mid;
            }
            if (compare < 0)
                min = mid + 1;
            else
                max = mid - 1;
        }
        return min;
    }
    /**
     * Return the tree path that should be used as the parent path for the
     * given widget and sorter. A <code>null</code> is returned if either
     * the sorter is not a {@link TreePathViewerSorter} or if the parent
     * widget is not an {@link Item} (i.e. is the root of the tree).
     * 
     * @param parent the parent widget
     * @param sorter the sorter
     * @return the tree path that should be used as the parent path for the
     * given widget and sorter
     */
	private TreePath internalGetSorterParentPath(Widget parent, ViewerSorter sorter) {
		TreePath path;
		if (sorter instanceof TreePathViewerSorter && parent instanceof Item) {
			Item item = (Item) parent;
			path = getTreePathFromItem(item);