Bug 81603 [Import/Export] tar import/export does not preserve file permissions
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/TarFileStructureProvider.java
*/
    public TarFile getTarFile() {
        return tarFile;
    }
    /**
     * Initializes this object's children table based on the contents of
     * the specified source file.
     */
    protected void initialize() {
        children = new HashMap(1000);
        Enumeration entries = tarFile.entries();
        while (entries.hasMoreElements()) {
            TarEntry entry = (TarEntry) entries.nextElement();
            if (entry.getFileType() == TarEntry.FILE) {
                IPath path = new Path(entry.getName()).addTrailingSeparator();
                int pathSegmentCount = path.segmentCount();
                for (int i = 1; i < pathSegmentCount; i++)
                    createContainer(path.uptoSegment(i));
                createFile(entry);
            }
        }
    }
    /* (non-Javadoc)
     * Method declared on IImportStructureProvider
     */
    public boolean isFolder(Object element) {
        return (((TarEntry) element).getFileType() == TarEntry.DIRECTORY);
    }
}