Class AvailableColumnCategoriesProvider

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

    public class AvailableColumnCategoriesProvider
    extends Object
    implements org.eclipse.jface.viewers.ITreeContentProvider
    Provides data to the tree viewer representation of Column categories. Data is in the form of Node objects exposed from the ColumnCategoriesModel
    • Constructor Detail

      • AvailableColumnCategoriesProvider

        public AvailableColumnCategoriesProvider​(ColumnCategoriesModel model)
    • Method Detail

      • hideEntries

        public void hideEntries​(List<ColumnEntry> entriesToHide)
        Hide the given ColumnEntry (ies) i.e. do not show them in the viewer.
        Parameters:
        entriesToHide - the entries to hide
      • getChildren

        public Object[] getChildren​(Object parentElement)
        Specified by:
        getChildren in interface org.eclipse.jface.viewers.ITreeContentProvider
      • getParent

        public Object getParent​(Object element)
        Specified by:
        getParent in interface org.eclipse.jface.viewers.ITreeContentProvider
      • hasChildren

        public boolean hasChildren​(Object element)
        Specified by:
        hasChildren in interface org.eclipse.jface.viewers.ITreeContentProvider
      • getElements

        public Object[] getElements​(Object inputElement)
        Specified by:
        getElements in interface org.eclipse.jface.viewers.IStructuredContentProvider
        Specified by:
        getElements in interface org.eclipse.jface.viewers.ITreeContentProvider
      • dispose

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

        public void inputChanged​(org.eclipse.jface.viewers.Viewer viewer,
                                 Object oldInput,
                                 Object newInput)
        Specified by:
        inputChanged in interface org.eclipse.jface.viewers.IContentProvider