mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
copyright: make deleted scopes red (IDEA-47113)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user