Пример #1
0
 @SuppressWarnings({"ConstantConditions"})
 public ArchiveFileDiffElement(@NotNull VirtualFile file) {
   super(
       file.getFileSystem() instanceof ArchiveFileSystem
           ? file
           : ArchiveVfsUtil.getArchiveRootForLocalFile(file));
 }
Пример #2
0
 @Override
 protected VirtualFileDiffElement createElement(VirtualFile file) {
   final VirtualFile archiveRootForLocalFile = ArchiveVfsUtil.getArchiveRootForLocalFile(file);
   return archiveRootForLocalFile == null ? null : new ArchiveFileDiffElement(file);
 }