org.eclipse.ui.wizards.datatransfer.IImportStructureProvider Java Examples
The following examples show how to use
org.eclipse.ui.wizards.datatransfer.IImportStructureProvider.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: WizardFolderImportPage.java From APICloud-Studio with GNU General Public License v3.0 | 6 votes |
/** * Return a list of all files in the project * * @param files * @param provider * The provider for the parent file * @param entry * The root directory of the project * @return A list of all files in the project */ @SuppressWarnings({ "rawtypes", "unchecked" }) protected boolean getFilesForProject(Collection files, IImportStructureProvider provider, Object entry) { List children = provider.getChildren(entry); Iterator childrenEnum = children.iterator(); while (childrenEnum.hasNext()) { Object child = childrenEnum.next(); // Add the child, this way we get every files except the project // folder itself which we don't want files.add(child); // We don't have isDirectory for tar so must check for children // instead if (provider.isFolder(child)) { getFilesForProject(files, provider, child); } } return true; }
Example #2
Source File: FileSystemObjectImportStructureProvider.java From tracecompass with Eclipse Public License 2.0 | 2 votes |
/** * Constructor * * @param importStructureProvider * the {@link IImportStructureProvider} * @param archivePath * the path of the archive file */ public FileSystemObjectImportStructureProvider(IImportStructureProvider importStructureProvider, String archivePath) { fImportProvider = importStructureProvider; fArchivePath = archivePath; }