Search in sources :

Example 1 with WideSelectionTreeUI

use of com.intellij.util.ui.tree.WideSelectionTreeUI in project intellij-community by JetBrains.

the class Tree method setUI.

@Override
public void setUI(final TreeUI ui) {
    TreeUI actualUI = ui;
    if (!isCustomUI()) {
        if (!(ui instanceof WideSelectionTreeUI) && isWideSelection() && !UIUtil.isUnderGTKLookAndFeel()) {
            actualUI = new WideSelectionTreeUI(isWideSelection(), getWideSelectionBackgroundCondition());
        }
    }
    super.setUI(actualUI);
}
Also used : WideSelectionTreeUI(com.intellij.util.ui.tree.WideSelectionTreeUI) BasicTreeUI(javax.swing.plaf.basic.BasicTreeUI) WideSelectionTreeUI(com.intellij.util.ui.tree.WideSelectionTreeUI) TreeUI(javax.swing.plaf.TreeUI)

Aggregations

WideSelectionTreeUI (com.intellij.util.ui.tree.WideSelectionTreeUI)1 TreeUI (javax.swing.plaf.TreeUI)1 BasicTreeUI (javax.swing.plaf.basic.BasicTreeUI)1