From c239d4cd5fe2a9e947e31873563236098fba4a0f Mon Sep 17 00:00:00 2001 From: "Maxim.Mossienko" Date: Thu, 25 Aug 2016 18:45:05 +0200 Subject: [PATCH] - Find in Path dialog: Preview tab doesn't show file path anywhere (IDEA-150931) --- .../lang-impl/src/com/intellij/find/impl/FindPopupPanel.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/platform/lang-impl/src/com/intellij/find/impl/FindPopupPanel.java b/platform/lang-impl/src/com/intellij/find/impl/FindPopupPanel.java index 18a15adbdff0..a630942d6da5 100644 --- a/platform/lang-impl/src/com/intellij/find/impl/FindPopupPanel.java +++ b/platform/lang-impl/src/com/intellij/find/impl/FindPopupPanel.java @@ -524,9 +524,12 @@ public class FindPopupPanel extends JBPanel { if (index != -1) { UsageInfo usageInfo = ((UsageInfo2UsageAdapter)myResultsPreviewTable.getModel().getValueAt(index, 0)).getUsageInfo(); myUsagePreviewPanel.updateLayout(Collections.singletonList(usageInfo)); + VirtualFile file = usageInfo.getVirtualFile(); + myUsagePreviewPanel.setBorder(IdeBorderFactory.createTitledBorder(file != null ? file.getPath() : "", false)); } else { myUsagePreviewPanel.updateLayout(null); + myUsagePreviewPanel.setBorder(IdeBorderFactory.createBorder()); } } });