wide selection in trees under aqua laf + deferred icon tree cache invalidation fix...
[idea/community.git] / platform / lang-impl / src / com / intellij / ide / projectView / impl / ProjectViewTree.java
index 8c27ec0529b3665ac7105ae8a065b13d29b3f423..584418918dd89d6e0458cc204a705157ec5a6ae3 100644 (file)
@@ -19,10 +19,7 @@ package com.intellij.ide.projectView.impl;
 import com.intellij.ide.dnd.aware.DnDAwareTree;
 import com.intellij.ide.util.treeView.NodeDescriptor;
 import com.intellij.ide.util.treeView.NodeRenderer;
-import com.intellij.openapi.util.SystemInfo;
-import com.intellij.util.ui.UIUtil;
 
-import javax.swing.plaf.TreeUI;
 import javax.swing.tree.DefaultMutableTreeNode;
 import javax.swing.tree.TreeModel;
 import javax.swing.tree.TreePath;
@@ -37,24 +34,10 @@ public abstract class ProjectViewTree extends DnDAwareTree {
   protected ProjectViewTree(TreeModel newModel) {
     super(newModel);
 
-    if (SystemInfo.isMac) setUI(new UIUtil.LeglessTreeUi());
-
     final NodeRenderer renderer = new NodeRenderer();
     renderer.setOpaque(false);
     renderer.setIconOpaque(false);
     setCellRenderer(renderer);
-
-    //setOpaque(false);
-  }
-
-  @Override
-  public void setUI(final TreeUI ui) {
-    TreeUI actualUI = ui;
-    if (SystemInfo.isMac && !(ui instanceof UIUtil.LeglessTreeUi)) {
-      actualUI = new UIUtil.LeglessTreeUi();
-    }
-
-    super.setUI(actualUI);
   }
 
   @Override