Lines 657-663
Link Here
|
657 |
private JList jList; |
657 |
private JList jList; |
658 |
private String searchText = ""; |
658 |
private String searchText = ""; |
659 |
private boolean caseSensitive; |
659 |
private boolean caseSensitive; |
660 |
private final HighlightingNameFormatter typeNameFormatter; |
660 |
private HighlightingNameFormatter typeNameFormatter; |
661 |
|
661 |
|
662 |
@SuppressWarnings("LeakingThisInConstructor") |
662 |
@SuppressWarnings("LeakingThisInConstructor") |
663 |
public Renderer( |
663 |
public Renderer( |
Lines 735-741
Link Here
|
735 |
); |
735 |
); |
736 |
bgSelectionColor = list.getSelectionBackground(); |
736 |
bgSelectionColor = list.getSelectionBackground(); |
737 |
fgSelectionColor = list.getSelectionForeground(); |
737 |
fgSelectionColor = list.getSelectionForeground(); |
738 |
this.typeNameFormatter = HighlightingNameFormatter.createBoldFormatter(); |
|
|
739 |
nameFieldDocument.addDocumentListener(this); |
738 |
nameFieldDocument.addDocumentListener(this); |
740 |
caseSensitive.addActionListener(this); |
739 |
caseSensitive.addActionListener(this); |
741 |
} |
740 |
} |
Lines 764-775
Link Here
|
764 |
jlPkg.setForeground(fgSelectionColor); |
763 |
jlPkg.setForeground(fgSelectionColor); |
765 |
jlPrj.setForeground(fgSelectionColor); |
764 |
jlPrj.setForeground(fgSelectionColor); |
766 |
rendererComponent.setBackground(bgSelectionColor); |
765 |
rendererComponent.setBackground(bgSelectionColor); |
|
|
766 |
this.typeNameFormatter = HighlightingNameFormatter.createColorFormatter(fgSelectionColor); |
767 |
} |
767 |
} |
768 |
else { |
768 |
else { |
769 |
jlName.setForeground(fgColor); |
769 |
jlName.setForeground(fgColor); |
770 |
jlPkg.setForeground(fgColorLighter); |
770 |
jlPkg.setForeground(fgColorLighter); |
771 |
jlPrj.setForeground(fgColor); |
771 |
jlPrj.setForeground(fgColor); |
772 |
rendererComponent.setBackground( index % 2 == 0 ? bgColor : bgColorDarker ); |
772 |
rendererComponent.setBackground( index % 2 == 0 ? bgColor : bgColorDarker ); |
|
|
773 |
this.typeNameFormatter = HighlightingNameFormatter.createColorFormatter(bgSelectionColor); |
773 |
} |
774 |
} |
774 |
|
775 |
|
775 |
if ( value instanceof TypeDescriptor ) { |
776 |
if ( value instanceof TypeDescriptor ) { |