mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
- enter in search field when preview is open navigates to selected result (IDEA-150336)
- Find in Path dialog: Preview tab doesn't show file path anywhere (IDEA-150931)
This commit is contained in:
@@ -369,14 +369,16 @@ public class FindDialog extends DialogWrapper {
|
||||
}
|
||||
);
|
||||
|
||||
new AnAction() {
|
||||
AnAction action = new AnAction() {
|
||||
@Override
|
||||
public void actionPerformed(AnActionEvent e) {
|
||||
if (isResultsPreviewTabActive()) {
|
||||
navigateToSelectedUsage(myResultsPreviewTable);
|
||||
}
|
||||
}
|
||||
}.registerCustomShortcutSet(CommonShortcuts.getEditSource(), comboBox, myDisposable);
|
||||
};
|
||||
action.registerCustomShortcutSet(CommonShortcuts.getEditSource(), comboBox, myDisposable);
|
||||
action.registerCustomShortcutSet(CommonShortcuts.ENTER, comboBox, myDisposable);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -663,9 +665,12 @@ public class FindDialog extends DialogWrapper {
|
||||
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());
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user