mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
don't blink if bg is file color and node is loading
This commit is contained in:
@@ -303,7 +303,11 @@ public class Tree extends JTree implements ComponentWithEmptyText, ComponentWith
|
||||
final TreePath path = getPathForRow(row);
|
||||
if (path != null) {
|
||||
final Rectangle bounds = getRowBounds(row);
|
||||
final Object component = path.getLastPathComponent();
|
||||
Object component = path.getLastPathComponent();
|
||||
final Object[] pathObjects = path.getPath();
|
||||
if (component instanceof LoadingNode && pathObjects.length > 1) {
|
||||
component = pathObjects[pathObjects.length - 2];
|
||||
}
|
||||
final Object object = ((DefaultMutableTreeNode)component).getUserObject();
|
||||
|
||||
Color color = getFileColorFor(object);
|
||||
|
||||
Reference in New Issue
Block a user