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();