diff --git a/platform/platform-api/src/com/intellij/ui/treeStructure/SimpleTree.java b/platform/platform-api/src/com/intellij/ui/treeStructure/SimpleTree.java index 11723b213847..859bb8429a6c 100644 --- a/platform/platform-api/src/com/intellij/ui/treeStructure/SimpleTree.java +++ b/platform/platform-api/src/com/intellij/ui/treeStructure/SimpleTree.java @@ -1,5 +1,5 @@ /* - * Copyright 2000-2011 JetBrains s.r.o. + * Copyright 2000-2012 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -256,6 +256,11 @@ public class SimpleTree extends Tree implements CellEditorListener { return true; } + @Override + public final boolean isFileColorsEnabled() { + return false; + } + @Override protected boolean paintNodes() { return true; diff --git a/platform/platform-api/src/com/intellij/ui/treeStructure/Tree.java b/platform/platform-api/src/com/intellij/ui/treeStructure/Tree.java index a2e24c7a71c4..86855b4b53b5 100644 --- a/platform/platform-api/src/com/intellij/ui/treeStructure/Tree.java +++ b/platform/platform-api/src/com/intellij/ui/treeStructure/Tree.java @@ -283,10 +283,13 @@ public class Tree extends JTree implements ComponentWithEmptyText, ComponentWith } if (isFileColorsEnabled()) { + g.setColor(getBackground()); + g.fillRect(0, 0, getWidth(), getHeight()); + paintFileColorGutter(g); } - super.paintComponent(g); + super.paintComponent(new Graphics2DLog(g)); myEmptyText.paint(this, g); }