Remote Systems
v6.4.1

com.ibm.etools.systems.files.importexport
Class RemoteImportExportDescriptionFilesViewerFilter

java.lang.Object
  extended byViewerFilter
      extended bycom.ibm.etools.systems.files.importexport.RemoteImportExportDescriptionFilesViewerFilter

public class RemoteImportExportDescriptionFilesViewerFilter
extends ViewerFilter

This class defines a viewer filter that can be used with a selection dialog, e.g. ElementTreeSelectionDialog. The viewer filter only allows description files for import/export. Current known extensions are defined in class RemoteFileImportExportConstants.

See Also:
Serialized Form

Field Summary
static int EXPORT_ONLY
          Constant indicating that only descriptor files for exports should be allowed.
static int IMPORT_EXPORT
          Constant indicating descriptor files for both import and export should be allowed.
static int IMPORT_ONLY
          Constant indicating that only descriptor files for imports should be allowed.
 
Constructor Summary
RemoteImportExportDescriptionFilesViewerFilter(int mode)
          Constructor.
 
Method Summary
 boolean select(Viewer viewer, Object parentElement, Object element)
          Allows containers and import/export description files.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IMPORT_EXPORT

public static final int IMPORT_EXPORT
Constant indicating descriptor files for both import and export should be allowed.

See Also:
Constant Field Values

IMPORT_ONLY

public static final int IMPORT_ONLY
Constant indicating that only descriptor files for imports should be allowed.

See Also:
Constant Field Values

EXPORT_ONLY

public static final int EXPORT_ONLY
Constant indicating that only descriptor files for exports should be allowed.

See Also:
Constant Field Values
Constructor Detail

RemoteImportExportDescriptionFilesViewerFilter

public RemoteImportExportDescriptionFilesViewerFilter(int mode)
Constructor.

Parameters:
mode - the mode. One of IMPORT_EXPORT, IMPORT_ONLY, or EXPORT_ONLY.
Method Detail

select

public boolean select(Viewer viewer,
                      Object parentElement,
                      Object element)
Allows containers and import/export description files.

See Also:
ViewerFilter

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.