@NonNls private static final String DEFAULT = "DEFAULT";
@NonNls private static final String EDITABLE = "EDITABLE";
public SeverityEditorDialog(final JComponent parent, final HighlightSeverity severity, final SeverityRegistrar severityRegistrar) {
super(parent, true);
mySeverityRegistrar = severityRegistrar;
<BUG>myOptionsList.setCellRenderer(new DefaultListCellRenderer() {
public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) {</BUG>
final Component rendererComponent = super.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus);
if (value instanceof SeverityBasedTextAttributes) {
setText(((SeverityBasedTextAttributes)value).getSeverity().toString());

@NonNls private static final String DEFAULT = "DEFAULT";
@NonNls private static final String EDITABLE = "EDITABLE";
public SeverityEditorDialog(final JComponent parent, final HighlightSeverity severity, final SeverityRegistrar severityRegistrar) {
super(parent, true);
mySeverityRegistrar = severityRegistrar;
myOptionsList.setCellRenderer(new DefaultListCellRenderer() {
@Override
public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) {
final Component rendererComponent = super.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus);
if (value instanceof SeverityBasedTextAttributes) {
setText(((SeverityBasedTextAttributes)value).getSeverity().toString());
