IDEA-88601 Can't open diff by clicking files in apply patch dialogue

This commit is contained in:
peter
2012-07-12 17:42:37 +02:00
parent 893356f0a1
commit ab89262ea8
@@ -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<FilePatchInProgress.PatchChange> changes = getAllChanges();