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
internalExpand(element, false);
            expandedElements.put(element, element);
        }
        
        
        
        
        internalSetExpanded(expandedElements, getControl());
    }
    /**
     * Sets which nodes are expanded in this viewer's tree. The given list
     * contains the tree paths that are to be expanded; all other nodes are to
     * be collapsed.
     * <p>
     * This method is typically used when restoring the interesting state of a
     * viewer captured by an earlier call to <code>getExpandedTreePaths</code>.
     * </p>
     * 
     * @param treePaths
     *           the array of expanded tree paths
     * @see #getExpandedTreePaths()
     * 
     * @since 3.2
     */
    public void setExpandedTreePaths(TreePath[] treePaths) {
        assertElementsNotNull(treePaths);
        final IElementComparer comparer = getComparer();
        IElementComparer treePathComparer = new IElementComparer(){
			public boolean equals(Object a, Object b) {
				return ((TreePath)a).equals(((TreePath)b), comparer);