tmf: Use Apache Common Compress for importing from archive
[deliverable/tracecompass.git] / tmf / org.eclipse.tracecompass.tmf.ui / src / org / eclipse / tracecompass / internal / tmf / ui / project / wizards / importtrace / TarFileSystemObject.java
index 93db412f194618363b767ed0372680dc710e5fd2..e93ab02a1c56f8368c1ff89d1b9d6b72fc1fbf8b 100644 (file)
@@ -16,6 +16,7 @@ import java.io.File;
 import java.io.IOException;
 import java.net.URI;
 
+import org.apache.commons.compress.archivers.tar.TarArchiveEntry;
 import org.eclipse.core.runtime.IPath;
 import org.eclipse.core.runtime.Path;
 import org.eclipse.core.runtime.URIUtil;
@@ -26,10 +27,10 @@ import org.eclipse.core.runtime.URIUtil;
  */
 class TarFileSystemObject implements IFileSystemObject {
 
-    private TarEntry fFileSystemObject;
+    private TarArchiveEntry fFileSystemObject;
     private String fArchivePath;
 
-    TarFileSystemObject(TarEntry fileSystemObject, String archivePath) {
+    TarFileSystemObject(TarArchiveEntry fileSystemObject, String archivePath) {
         fFileSystemObject = fileSystemObject;
         fArchivePath = archivePath;
     }
@@ -71,6 +72,6 @@ class TarFileSystemObject implements IFileSystemObject {
 
     @Override
     public boolean isDirectory() {
-        return fFileSystemObject.getFileType() == TarEntry.DIRECTORY;
+        return fFileSystemObject.isDirectory();
     }
 }
\ No newline at end of file
This page took 0.024089 seconds and 5 git commands to generate.