From 5a53b64278c70b8ff910236a67f58f7146ca1580 Mon Sep 17 00:00:00 2001 From: irengrig Date: Thu, 17 Nov 2011 14:23:39 +0400 Subject: [PATCH] VCS: file name to diff window with "last chance" apply patch result --- .../intellij/openapi/vcs/changes/patch/ApplyPatchAction.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/patch/ApplyPatchAction.java b/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/patch/ApplyPatchAction.java index 3fba9c383764..0164ec9ef6e5 100644 --- a/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/patch/ApplyPatchAction.java +++ b/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/patch/ApplyPatchAction.java @@ -206,7 +206,9 @@ public class ApplyPatchAction extends DumbAwareAction { final VirtualFile file, ApplyPatchForBaseRevisionTexts texts, boolean readonly) { - final SimpleDiffRequest simpleRequest = new SimpleDiffRequest(project, "Result of patch apply"); + final SimpleDiffRequest simpleRequest = new SimpleDiffRequest(project, new StringBuilder().append("Result of patch apply to ") + .append(file.getName()).append(" (").append(file.getParent() == null ? file.getPath() : file.getParent().getPath()).append(")") + .toString()); final DocumentImpl patched = new DocumentImpl(texts.getPatched()); patched.setReadOnly(false);