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.
        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
        item - - a tree item which is expanding
      • setMultiSelect

        public void setMultiSelect​(boolean multiSelect)
        Set new multiSelect value
        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.
        element - - tree item element