remove border from an action's renderer

This commit is contained in:
Sergey Malenkov
2017-02-28 16:27:16 +03:00
parent d1d5296175
commit fe784941b1
@@ -1080,6 +1080,7 @@ public class SearchEverywhereAction extends AnAction implements CustomComponentA
if (cmp == null) {
if (value instanceof GotoActionModel.ActionWrapper) {
cmp = myActionsRenderer.getListCellRendererComponent(list, new GotoActionModel.MatchedValue(((GotoActionModel.ActionWrapper)value), pattern), index, isSelected, isSelected);
if (cmp instanceof JComponent) ((JComponent)cmp).setBorder(null);
} else {
cmp = super.getListCellRendererComponent(list, value, index, isSelected, isSelected);
final JPanel p = new JPanel(new BorderLayout());