Class CheckableTreeViewer

    • Constructor Detail

      • CheckableTreeViewer

        public CheckableTreeViewer​(org.eclipse.swt.widgets.Tree tree)
      • CheckableTreeViewer

        public CheckableTreeViewer​(org.eclipse.swt.widgets.Tree tree,
                                   boolean multiSelect)
    • Method Detail

      • setCheckedElements

        public void setCheckedElements​(Object[] elements)
        Saves checked elements in treeviwer, but does not set checkboxes, until some tree node is expanded.
        Overrides:
        setCheckedElements in class CheckboxTreeViewer
      • expandOneLevel

        public void expandOneLevel​(org.eclipse.swt.widgets.Widget item)
        Expands the tree node by one level and sets the checkboxes for elements
        Parameters:
        item - - a tree item which is expanding
      • setMultiSelect

        public void setMultiSelect​(boolean multiSelect)
        Set new multiSelect value
        Parameters:
        multiSelect - - new value of multi select
      • setOppositeCheckedState

        public void setOppositeCheckedState​(Object element)
        Changes the check state of an element to opposite. After state has been changed, viewer is refreshed starting with the given element.
        Parameters:
        element - - tree item element