highlighting illegal dependency rules

This commit is contained in:
Anna Kozlova
2005-02-14 18:00:04 +03:00
parent fcc7e8190a
commit 1c1ca09c79
@@ -323,10 +323,7 @@ public class DependenciesPanel extends JPanel {
setIcon(node.getClosedIcon());
}
if (node.hasMarked() && !selected) {
setForeground(Color.red);
}
append(node.toString(), SimpleTextAttributes.REGULAR_ATTRIBUTES);
append(node.toString(), node.hasMarked() && !selected ? SimpleTextAttributes.ERROR_ATTRIBUTES : SimpleTextAttributes.REGULAR_ATTRIBUTES);
append(node.getPresentableFilesCount(), SimpleTextAttributes.GRAYED_ATTRIBUTES);
}
}