/** * Parameter must be a set of valid uris in the archive */ public SelectedFilesFilterImpl(Set fileNames) { super(); setSelectedFileNames(fileNames); }
/** * Constructor with a preselected subset of the files in the archive to be saved; each element * in the list must be an instance of {@link com.ibm.etools.commonarchive.File} */ public SelectedFilesFilterImpl(List archiveFiles) { super(); Set fileNames = new HashSet(); for (int i = 0; i < archiveFiles.size(); i++) { File aFile = (File) archiveFiles.get(i); fileNames.add(aFile.getURI()); } setSelectedFileNames(fileNames); }