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
if (sorter instanceof TreePathViewerSorter) {
			TreePathViewerSorter tpvs = (TreePathViewerSorter) sorter;
			
			
			result = (Object[]) result.clone();
			
			TreePath path = null;
	    	if (parentElementOrTreePath instanceof TreePath) {
	    		path = (TreePath) parentElementOrTreePath;
			} else {
				Object parent = parentElementOrTreePath;
				Widget w = internalGetWidgetToSelect(parent);
				if (w != null) {
					path = internalGetSorterParentPath(w, sorter);
				}
				if (path == null)
					path = TreePath.EMPTY.createChildPath(parentElementOrTreePath);
			}
	    	tpvs.sort(this, path, result);
		} else if (sorter != null) {
			
			result = (Object[]) result.clone();
			sorter.sort(this, result);
		}
		return result;
	}
	
	/* (non-Javadoc)
	 * @see org.eclipse.jface.viewers.StructuredViewer#getFilteredChildren(java.lang.Object)
	 */