From ab89262ea80bb44e83225163a580be7e813d294c Mon Sep 17 00:00:00 2001 From: peter Date: Thu, 12 Jul 2012 13:27:42 +0200 Subject: [PATCH] IDEA-88601 Can't open diff by clicking files in apply patch dialogue --- .../changes/patch/ApplyPatchDifferentiatedDialog.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/patch/ApplyPatchDifferentiatedDialog.java b/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/patch/ApplyPatchDifferentiatedDialog.java index 04c44c55c76a..fa756e694778 100644 --- a/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/patch/ApplyPatchDifferentiatedDialog.java +++ b/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/patch/ApplyPatchDifferentiatedDialog.java @@ -141,6 +141,12 @@ public class ApplyPatchDifferentiatedDialog extends DialogWrapper { myCommitLegendPanel.update(); } }, new MyChangeNodeDecorator()); + myChangesTreeList.setDoubleClickHandler(new Runnable() { + @Override + public void run() { + new MyShowDiff().showDiff(); + } + }); myUpdater = new MyUpdater(); myPatchFile = new TextFieldWithBrowseButton(); @@ -944,6 +950,10 @@ public class ApplyPatchDifferentiatedDialog extends DialogWrapper { } public void actionPerformed(AnActionEvent e) { + showDiff(); + } + + private void showDiff() { if (ChangeListManager.getInstance(myProject).isFreezedWithNotification(null)) return; if (myPatches.isEmpty() || (! myContainBasedChanges)) return; final List changes = getAllChanges();