Remote Systems
v6.4.1

com.ibm.etools.systems.core.ui
Class SystemFileTreeAndListGroup

java.lang.Object
  extended byorg.eclipse.ui.internal.ide.dialogs.ResourceTreeAndListGroup
      extended bycom.ibm.etools.systems.core.ui.SystemFileTreeAndListGroup

public class SystemFileTreeAndListGroup
extends ResourceTreeAndListGroup

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.

See Also:
Serialized Form

Field Summary
static String copyright
           
 
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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

copyright

public static final String copyright
See Also:
Constant Field Values
Constructor Detail

SystemFileTreeAndListGroup

public 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

Parameters:
parent - org.eclipse.swt.widgets.Composite
rootObject - java.lang.Object
treeContentProvider - supplies the folders for the tree
treeLabelProvider - supplies the names and icons of the folders for the tree
listContentProvider - supplies the files for the tree
listLabelProvider - supplies the names and icons for the files for the list
style - int
width - int
height - int

SystemFileTreeAndListGroup

public SystemFileTreeAndListGroup(Composite parent,
                                  ITreeContentProvider treeContentProvider,
                                  ILabelProvider treeLabelProvider,
                                  IStructuredContentProvider listContentProvider,
                                  ILabelProvider listLabelProvider,
                                  int style,
                                  int width,
                                  int height)
Constructor when there is no initial content

Parameters:
parent - org.eclipse.swt.widgets.Composite
treeContentProvider - supplies the folders for the tree
treeLabelProvider - supplies the names and icons of the folders for the tree
listContentProvider - supplies the files for the tree
listLabelProvider - supplies the names and icons for the files for the list
style - int
width - int
height - int
Method Detail

refresh

public void refresh()
Refesh all the contents of the checkbox viewers


refreshFiles

public void refreshFiles()
Refesh the contents of the file-selection checkbox viewer.


selectionChanged

public void selectionChanged(SelectionChangedEvent event)
Handle the selection of an item in the tree viewer. Intercept of parent so we can record the last selected tree node.


setRoot

public void setRoot(Object newRoot)
Set the root of the widget to be new Root. Regenerate all of the tables and lists from this value. Intercept of parent so we can refresh internal variables.

Parameters:
newRoot -

clearAll

public void clearAll()
Clear the contents


Remote Systems
v6.4.1

Copyright © 2005 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.