comparing with chosen jar
authornik <Nikolay.Chashnikov@jetbrains.com>
Thu, 19 Jan 2012 12:49:50 +0000 (16:49 +0400)
committerDmitry Avdeev <Dmitry.Avdeev@jetbrains.com>
Thu, 19 Jan 2012 12:57:00 +0000 (16:57 +0400)
platform/platform-impl/src/com/intellij/openapi/diff/actions/CompareJarsAction.java

index 43609837ff8436a94ce494d2d1d3f970d49e4e11..c6ff42153029b05076da9f9c58bb6454f33943ea 100644 (file)
@@ -46,7 +46,7 @@ public class CompareJarsAction extends AnAction {
         src = new JarFileDiffElement(files[0]);
         trg = new JarFileDiffElement(files[1]);
       } else if (files.length == 1 && isJar(files[0])) {
-        src = new VirtualFileDiffElement(files[0]);
+        src = new JarFileDiffElement(files[0]);
         final FileChooserDescriptor descriptor = new FileChooserDescriptor(true, false, true, true, false, false) {
           @Override
           public boolean isFileVisible(VirtualFile file, boolean showHiddenFiles) {