mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-178054: fix issues with wide selection in trees for new TreeUI
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user