|
RSE Release 2.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.core.commands.common.EventManager
org.eclipse.ui.internal.ide.dialogs.ResourceTreeAndListGroup
org.eclipse.rse.files.ui.widgets.SystemFileTreeAndListGroup
public class SystemFileTreeAndListGroup
This is a private-use subclass of the internal Eclipse ResourceTreeAndListGroup composite widget. This is for selecting multiple local or remote files. It contains a checkbox tree on the left for selecting the folder, and a checkbox list on the right for selecting the files.
We subclass this to add some slight additional functionality, including support for refreshing the contents.
| Constructor Summary | |
|---|---|
SystemFileTreeAndListGroup(Composite parent,
ITreeContentProvider treeContentProvider,
ILabelProvider treeLabelProvider,
IStructuredContentProvider listContentProvider,
ILabelProvider listLabelProvider,
int style,
int width,
int height)
Constructor when there is no initial content |
|
SystemFileTreeAndListGroup(Composite parent,
Object rootObject,
ITreeContentProvider treeContentProvider,
ILabelProvider treeLabelProvider,
IStructuredContentProvider listContentProvider,
ILabelProvider listLabelProvider,
int style,
int width,
int height)
Constructor when there is initial content |
|
| Method Summary | |
|---|---|
void |
clearAll()
Clear the contents |
void |
refresh()
Refesh all the contents of the checkbox viewers |
void |
refreshFiles()
Refesh the contents of the file-selection checkbox viewer. |
void |
selectionChanged(SelectionChangedEvent event)
Handle the selection of an item in the tree viewer. |
void |
setRoot(Object newRoot)
Set the root of the widget to be new Root. |
| Methods inherited from class org.eclipse.ui.internal.ide.dialogs.ResourceTreeAndListGroup |
|---|
aboutToOpen, addCheckStateListener, areAllChildrenWhiteChecked, areAllElementsChecked, checkNewTreeElements, checkStateChanged, createContents, createListViewer, createTreeViewer, determineShouldBeAtLeastGrayChecked, determineShouldBeWhiteChecked, determineWhiteCheckedDescendents, expandAll, getAllCheckedListItems, getAllCheckedListItems, getAllWhiteCheckedItems, getCheckedElementCount, getFullLabel, getListItemsSize, getListTable, grayCheckHierarchy, initialCheckListItem, initialCheckTreeItem, initialize, listItemChecked, notifyCheckStateChangeListeners, populateListViewer, removeCheckStateListener, setAllSelections, setFocus, setListComparator, setListProviders, setTreeChecked, setTreeComparator, setTreeProviders, setWhiteChecked, treeCollapsed, treeExpanded, treeItemChecked, ungrayCheckHierarchy, updateHierarchy, updateSelections |
| Methods inherited from class org.eclipse.core.commands.common.EventManager |
|---|
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SystemFileTreeAndListGroup(Composite parent,
Object rootObject,
ITreeContentProvider treeContentProvider,
ILabelProvider treeLabelProvider,
IStructuredContentProvider listContentProvider,
ILabelProvider listLabelProvider,
int style,
int width,
int height)
parent - org.eclipse.swt.widgets.CompositerootObject - java.lang.ObjecttreeContentProvider - supplies the folders for the treetreeLabelProvider - supplies the names and icons of the folders for the treelistContentProvider - supplies the files for the treelistLabelProvider - supplies the names and icons for the files for the liststyle - intwidth - intheight - int
public SystemFileTreeAndListGroup(Composite parent,
ITreeContentProvider treeContentProvider,
ILabelProvider treeLabelProvider,
IStructuredContentProvider listContentProvider,
ILabelProvider listLabelProvider,
int style,
int width,
int height)
parent - org.eclipse.swt.widgets.CompositetreeContentProvider - supplies the folders for the treetreeLabelProvider - supplies the names and icons of the folders for the treelistContentProvider - supplies the files for the treelistLabelProvider - supplies the names and icons for the files for the liststyle - intwidth - intheight - int| Method Detail |
|---|
public void refresh()
public void refreshFiles()
public void selectionChanged(SelectionChangedEvent event)
selectionChanged in interface ISelectionChangedListenerselectionChanged in class org.eclipse.ui.internal.ide.dialogs.ResourceTreeAndListGroupevent - the selection changed eventpublic void setRoot(Object newRoot)
setRoot in class org.eclipse.ui.internal.ide.dialogs.ResourceTreeAndListGroupnewRoot - public void clearAll()
|
RSE Release 2.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||