IDEA-178054: fix issues with wide selection in trees for new TreeUI

This commit is contained in:
Sergey Malenkov
2019-04-02 21:20:23 +03:00
parent 8958e3a174
commit 67ca8982c8
@@ -273,7 +273,8 @@ public class WideSelectionTreeUI extends BasicTreeUI {
public static boolean isWideSelection(@NotNull JTree tree) {
TreeUI ui = tree.getUI();
return ui instanceof WideSelectionTreeUI && ((WideSelectionTreeUI)ui).isWideSelection();
return ui instanceof WideSelectionTreeUI && ((WideSelectionTreeUI)ui).isWideSelection() ||
ui != null && ui.getClass().getName().equals("com.intellij.ui.tree.ui.DefaultTreeUI");
}
@Override