mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-88601 Can't open diff by clicking files in apply patch dialogue
This commit is contained in:
+10
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user