copyright: make deleted scopes red (IDEA-47113)

This commit is contained in:
anna
2010-10-28 13:15:46 +04:00
parent e0439ce65c
commit 42a676704f
@@ -413,7 +413,19 @@ public class ProjectSettingsPanel extends PanelWithButtons {
int row,
int column) {
super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column);
setText(value == null ? "" : ((NamedScope) value).getName());
if (value == null) {
setText("");
}
else {
final String scopeName = ((NamedScope)value).getName();
if (!isSelected) {
final NamedScope scope = DependencyValidationManager.getScope(myProject, scopeName);
if (scope == null) {
setForeground(Color.red);
}
}
setText(scopeName);
}
return this;
}
};