This commit is contained in:
Alexey Kudravtsev
2016-05-17 14:20:36 +03:00
parent aa32210747
commit 4821248d09
59 changed files with 98 additions and 81 deletions
@@ -25,6 +25,7 @@ import com.intellij.psi.PsiSubstitutor;
import com.intellij.psi.util.PsiFormatUtil;
import com.intellij.ui.*;
import com.intellij.ui.components.JBList;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import javax.swing.*;
@@ -51,7 +52,7 @@ public class MethodListDlg extends DialogWrapper {
createList(psiClass.getAllMethods(), filter);
myWholePanel.add(ScrollPaneFactory.createScrollPane(myList));
myList.setCellRenderer(new ColoredListCellRenderer() {
protected void customizeCellRenderer(final JList list, final Object value, final int index, final boolean selected, final boolean hasFocus) {
protected void customizeCellRenderer(@NotNull final JList list, final Object value, final int index, final boolean selected, final boolean hasFocus) {
final PsiMethod psiMethod = (PsiMethod)value;
append(PsiFormatUtil.formatMethod(psiMethod, PsiSubstitutor.EMPTY, PsiFormatUtil.SHOW_NAME, 0),
StructureNodeRenderer.applyDeprecation(psiMethod, SimpleTextAttributes.REGULAR_ATTRIBUTES));