Class TestTreeContentProvider

  • All Implemented Interfaces:
    org.eclipse.jface.viewers.IContentProvider, org.eclipse.jface.viewers.ILazyTreeContentProvider

    public class TestTreeContentProvider
    extends Object
    implements org.eclipse.jface.viewers.ILazyTreeContentProvider
    Provides the content for the main test execution tree.
    Author:
    Rene Schneider - initial API and implementation
    • Constructor Detail

      • TestTreeContentProvider

        public TestTreeContentProvider​(org.eclipse.jface.viewers.TreeViewer anOwner)
        Constructs a new instance.
        Parameters:
        anOwner - the owner that will receive this provider
    • Method Detail

      • updateElement

        public void updateElement​(Object aParent,
                                  int anIndex)
        Specified by:
        updateElement in interface org.eclipse.jface.viewers.ILazyTreeContentProvider
      • updateChildCount

        public void updateChildCount​(Object anElement,
                                     int aCurrentChildCount)
        Specified by:
        updateChildCount in interface org.eclipse.jface.viewers.ILazyTreeContentProvider
      • getParent

        public Object getParent​(Object anElement)
        Specified by:
        getParent in interface org.eclipse.jface.viewers.ILazyTreeContentProvider
      • dispose

        public void dispose()
        Specified by:
        dispose in interface org.eclipse.jface.viewers.IContentProvider
      • expandToLevel

        public void expandToLevel​(int aDepth)
        Expands all nodes to a specific depth.
        Parameters:
        aDepth - the depth
      • expandToLevelInternal

        protected void expandToLevelInternal​(Object anEntry,
                                             int aDepth)
        Used internally to expand a node to a specific depth (recursively).
        Parameters:
        anEntry - the node to expand
        aDepth - the depth
      • inputChanged

        public void inputChanged​(org.eclipse.jface.viewers.Viewer aViewer,
                                 Object anOldInput,
                                 Object aNewInput)
        Specified by:
        inputChanged in interface org.eclipse.jface.viewers.IContentProvider