mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
add ide_tree_horizontal_default_autoscrolling registry property to allow disabling auto horizontal scrolling in tree views (#RIDER-11145)
This commit is contained in:
@@ -156,7 +156,6 @@ public class PushLog extends JPanel implements DataProvider {
|
||||
myTree.setUI(new MyTreeUi());
|
||||
myTree.setBorder(new EmptyBorder(2, 0, 0, 0)); //additional vertical indent
|
||||
myTree.setEditable(true);
|
||||
myTree.setHorizontalAutoScrollingEnabled(false);
|
||||
myTree.setShowsRootHandles(root.getChildCount() > 1);
|
||||
MyTreeCellEditor treeCellEditor = new MyTreeCellEditor();
|
||||
myTree.setCellEditor(treeCellEditor);
|
||||
|
||||
@@ -1034,7 +1034,6 @@ public class FileStructurePopup implements Disposable, TreeActionsOwner {
|
||||
super(treeModel);
|
||||
setRootVisible(false);
|
||||
setShowsRootHandles(true);
|
||||
setHorizontalAutoScrollingEnabled(false);
|
||||
|
||||
HintUpdateSupply.installHintUpdateSupply(this, o -> {
|
||||
Object value = unwrapValue(o);
|
||||
|
||||
@@ -20,6 +20,7 @@ import com.intellij.openapi.util.Condition;
|
||||
import com.intellij.openapi.util.Conditions;
|
||||
import com.intellij.openapi.util.Disposer;
|
||||
import com.intellij.openapi.util.SystemInfo;
|
||||
import com.intellij.openapi.util.registry.Registry;
|
||||
import com.intellij.ui.*;
|
||||
import com.intellij.util.ReflectionUtil;
|
||||
import com.intellij.util.ui.*;
|
||||
@@ -55,7 +56,7 @@ public class Tree extends JTree implements ComponentWithEmptyText, ComponentWith
|
||||
|
||||
private Dimension myHoldSize;
|
||||
private final MySelectionModel mySelectionModel = new MySelectionModel();
|
||||
private boolean myHorizontalAutoScrolling = true;
|
||||
private boolean myHorizontalAutoScrolling = Registry.is("ide.tree.horizontal.default.autoscrolling", false);
|
||||
|
||||
private TreePath rollOverPath;
|
||||
|
||||
|
||||
@@ -192,7 +192,6 @@ public class UsageViewImpl implements UsageViewEx {
|
||||
myTree = new Tree(myModel) {
|
||||
{
|
||||
ToolTipManager.sharedInstance().registerComponent(this);
|
||||
setHorizontalAutoScrollingEnabled(false);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -136,6 +136,8 @@ ide.tree.clearOnHideTime=120000
|
||||
ide.tree.clearOnHideTime.description=Time in milliseconds when the hidden project view tree will be deactivated.
|
||||
|
||||
ide.tree.autoscrollToVCenter=true
|
||||
ide.tree.horizontal.default.autoscrolling=false
|
||||
ide.tree.horizontal.default.autoscrolling.description=Allow automatic horizontal scroll of selected tree nodes to visible area in tree views
|
||||
ide.tree.ensureSelectionOnFocusGained=true
|
||||
ide.tree.autoExpandMaxDepth=5
|
||||
ide.tree.expandRecursionDepth=50
|
||||
|
||||
-1
@@ -144,7 +144,6 @@ public class ShelvedChangesViewManager implements ProjectComponent {
|
||||
myTree.setRootVisible(false);
|
||||
myTree.setShowsRootHandles(true);
|
||||
myTree.setEditable(true);
|
||||
myTree.setHorizontalAutoScrollingEnabled(false);
|
||||
myTree.setCellRenderer(new ShelfTreeCellRenderer(project, myMoveRenameInfo));
|
||||
DefaultTreeCellEditor treeCellEditor = new DefaultTreeCellEditor(myTree, null) {
|
||||
@Override
|
||||
|
||||
@@ -94,7 +94,6 @@ public abstract class ChangesTree extends Tree implements DataProvider {
|
||||
myShowCheckboxes = showCheckboxes;
|
||||
myCheckboxWidth = new JCheckBox().getPreferredSize().width;
|
||||
|
||||
setHorizontalAutoScrollingEnabled(false);
|
||||
setRootVisible(false);
|
||||
setShowsRootHandles(true);
|
||||
setOpaque(false);
|
||||
|
||||
-1
@@ -54,7 +54,6 @@ public class BreakpointsCheckboxTree extends CheckboxTree {
|
||||
|
||||
public BreakpointsCheckboxTree(Project project, BreakpointItemsTreeController model) {
|
||||
super(new BreakpointsTreeCellRenderer.BreakpointsCheckboxTreeCellRenderer(project), model.getRoot());
|
||||
setHorizontalAutoScrollingEnabled(false);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user