mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Registry: remove "ide.expansion.hints.on.all.screens" property
This commit is contained in:
@@ -347,7 +347,7 @@ public abstract class AbstractExpandableItemsHandler<KeyType, ComponentType exte
|
||||
Point location = new Point(visMaxX, cellBounds.y);
|
||||
SwingUtilities.convertPointToScreen(location, myComponent);
|
||||
|
||||
Rectangle screen = getScreenRectangle(location);
|
||||
Rectangle screen = ScreenUtil.getScreenRectangle(location);
|
||||
|
||||
int borderWidth = isPaintBorder() ? 1 : 0;
|
||||
int width = Math.min(screen.width + screen.x - location.x - borderWidth, cellMaxX - visMaxX);
|
||||
@@ -380,12 +380,6 @@ public abstract class AbstractExpandableItemsHandler<KeyType, ComponentType exte
|
||||
return location;
|
||||
}
|
||||
|
||||
public static Rectangle getScreenRectangle(Point location) {
|
||||
return !Registry.is("ide.expansion.hints.on.all.screens")
|
||||
? ScreenUtil.getScreenRectangle(location)
|
||||
: ScreenUtil.getAllScreensRectangle();
|
||||
}
|
||||
|
||||
protected boolean isPaintBorder() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -133,8 +133,9 @@ ide.tooltip.initialReshowDelay=300
|
||||
ide.tooltip.autoDismissDeadZone=300
|
||||
ide.balloon.shadowEnabled=true
|
||||
ide.balloon.shadow.size=15
|
||||
|
||||
ide.expansion.hints.enabled=true
|
||||
ide.expansion.hints.on.all.screens=false
|
||||
ide.expansion.hints.enabled.description=Enables expansion hints for lists, trees and tables to show invisible part of a cell renderer.
|
||||
|
||||
editor.balloonHints=true
|
||||
editor.mouseSelectionStateResetTimeout=1000
|
||||
|
||||
+2
-2
@@ -18,9 +18,9 @@ package com.intellij.xdebugger.impl.ui.tree;
|
||||
import com.intellij.openapi.diagnostic.Logger;
|
||||
import com.intellij.openapi.project.Project;
|
||||
import com.intellij.openapi.util.text.StringUtil;
|
||||
import com.intellij.ui.AbstractExpandableItemsHandler;
|
||||
import com.intellij.ui.ColoredTreeCellRenderer;
|
||||
import com.intellij.ui.ExpandableItemsHandler;
|
||||
import com.intellij.ui.ScreenUtil;
|
||||
import com.intellij.ui.SimpleTextAttributes;
|
||||
import com.intellij.xdebugger.XDebuggerBundle;
|
||||
import com.intellij.xdebugger.frame.ImmediateFullValueEvaluator;
|
||||
@@ -85,7 +85,7 @@ class XDebuggerTreeRenderer extends ColoredTreeCellRenderer {
|
||||
if (!StringUtil.isEmpty(rawValue) && tree.isShowing()) {
|
||||
Point treeRightSideOnScreen = new Point(visibleRectRightX, 0);
|
||||
SwingUtilities.convertPointToScreen(treeRightSideOnScreen, tree);
|
||||
Rectangle screen = AbstractExpandableItemsHandler.getScreenRectangle(treeRightSideOnScreen);
|
||||
Rectangle screen = ScreenUtil.getScreenRectangle(treeRightSideOnScreen);
|
||||
// text may fit the screen in ExpandableItemsHandler
|
||||
if (screen.x + screen.width < treeRightSideOnScreen.x + notFittingWidth) {
|
||||
myLongTextLink.setupComponent(rawValue, ((XDebuggerTree)tree).getProject());
|
||||
|
||||
Reference in New Issue
Block a user