Method Summary |
|
public void | aboutToOpen() This method must be called just before this window becomes visible. |
public void | addCheckStateListener(ICheckStateListener listener) |
protected boolean | areAllChildrenWhiteChecked(Object treeElement) |
protected boolean | areAllElementsChecked(Object treeElement) |
protected void | checkNewTreeElements(Object[] elements) |
public void | checkStateChanged(CheckStateChangedEvent event) An item was checked in one of self's two views. |
protected void | createContents(Composite parent, int style, boolean useHeightHint) Lay out and initialize self's visual components. |
protected void | createListViewer(Composite parent, boolean useHeightHint) Create this group's list viewer. |
protected void | createTreeViewer(Composite parent, boolean useHeightHint) Create this group's tree viewer. |
protected boolean | determineShouldBeAtLeastGrayChecked(Object treeElement) Returns a boolean indicating whether the passed tree element should be
at LEAST gray-checked. |
protected boolean | determineShouldBeWhiteChecked(Object treeElement) Returns a boolean indicating whether the passed tree item should be
white-checked. |
protected void | determineWhiteCheckedDescendents(Object treeElement) Recursively add appropriate tree elements to the collection of
known white-checked tree elements. |
public void | expandAll() |
public void | getAllCheckedListItems(IElementFilter filter, IProgressMonitor monitor) Returns a flat list of all of the leaf elements which are checked. |
public List | getAllCheckedListItems() Returns a flat list of all of the leaf elements which are checked.
all of the leaf elements which are checked. |
public List | getAllWhiteCheckedItems() Returns a list of all of the items that are white checked.
Any folders that are white checked are added and then any files
from white checked folders are added. |
public int | getCheckedElementCount() Answer the number of elements that have been checked by the
user. |
protected String | getFullLabel(Object treeElement, String parentLabel) Get the full label of the treeElement (its name and its parent's name). |
protected int | getListItemsSize(Object treeElement) Return a count of the number of list items associated with a
given tree item. |
public Table | getListTable() Get the table the list viewer uses. |
protected void | grayCheckHierarchy(Object treeElement) |
public void | initialCheckListItem(Object element) Set the initial checked state of the passed list element to true. |
public void | initialCheckTreeItem(Object element) |
protected void | initialize() Initialize this group's viewers after they have been laid out. |
protected void | listItemChecked(Object listElement, boolean state, boolean updatingFromSelection) Callback that's invoked when the checked status of an item in the list
is changed by the user. |
protected void | notifyCheckStateChangeListeners(CheckStateChangedEvent event) |
protected void | populateListViewer(Object treeElement) Set the contents of the list viewer based upon the specified selected
tree element. |
public void | removeCheckStateListener(ICheckStateListener listener) |
public void | selectionChanged(SelectionChangedEvent event) |
public void | setAllSelections(boolean selection) Select or deselect all of the elements in the tree depending on the value of the selection
boolean. |
public void | setFocus() Set the focus on to the list widget. |
public void | setListComparator(ViewerComparator comparator) |
public void | setListProviders(IStructuredContentProvider contentProvider, ILabelProvider labelProvider) |
public void | setRoot(Object newRoot) Set the root of the widget to be new Root. |
protected void | setTreeChecked(Object treeElement, boolean state) |
public void | setTreeComparator(ViewerComparator comparator) |
public void | setTreeProviders(ITreeContentProvider contentProvider, ILabelProvider labelProvider) |
protected void | setWhiteChecked(Object treeElement, boolean isWhiteChecked) Adjust the collection of references to white-checked tree elements appropriately. |
public void | treeCollapsed(TreeExpansionEvent event) |
public void | treeExpanded(TreeExpansionEvent event) |
protected void | treeItemChecked(Object treeElement, boolean state) Callback that's invoked when the checked status of an item in the tree
is changed by the user. |
protected void | ungrayCheckHierarchy(Object treeElement) Logically un-gray-check all ancestors of treeItem iff appropriate. |
protected void | updateHierarchy(Object treeElement) |
public void | updateSelections(Map items) Update the selections of the tree elements in items to reflect the new
selections provided.
Parameters: items - Map with keys of Object (the tree element) and values of List (the selectedlist elements). |