mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
[debugger-rd] IJPL-160146: Remove canShowHint method, since it always returns true
GitOrigin-RevId: 17f11978a2fe84efccde9bb65fafd7e8b70279eb
This commit is contained in:
committed by
intellij-monorepo-bot
parent
d2dfa559f2
commit
211cb58b51
@@ -44,8 +44,8 @@ private class BackendDebuggerValueLookupHintsRemoteApi : XDebuggerValueLookupHin
|
||||
val editor = editorId.findEditor()
|
||||
val point = editor.offsetToXY(offset)
|
||||
|
||||
val hint = getValueHintFromDebuggers(project, editor, point, hintType) ?: return@withContext false
|
||||
hint.canShowHint()
|
||||
val canShowHint = getValueHintFromDebuggers(project, editor, point, hintType) != null
|
||||
return@withContext canShowHint
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -202,10 +202,6 @@ public class ValueLookupManager implements EditorMouseMotionListener, EditorMous
|
||||
hint.setEditorMouseEvent(event);
|
||||
}
|
||||
UIUtil.invokeLaterIfNeeded(() -> {
|
||||
if (!hint.canShowHint()) {
|
||||
return;
|
||||
}
|
||||
|
||||
hideHint();
|
||||
|
||||
myCurrentHint = hint;
|
||||
|
||||
@@ -100,11 +100,6 @@ public abstract class AbstractValueHint {
|
||||
myCurrentRange = textRange;
|
||||
}
|
||||
|
||||
@ApiStatus.Internal
|
||||
public boolean canShowHint() {
|
||||
return true;
|
||||
}
|
||||
|
||||
protected abstract void evaluateAndShowHint();
|
||||
|
||||
boolean isInsideCurrentRange(Editor editor, Point point) {
|
||||
@@ -145,7 +140,7 @@ public abstract class AbstractValueHint {
|
||||
public void invokeHint(Runnable hideRunnable) {
|
||||
myHideRunnable = hideRunnable;
|
||||
|
||||
if (!canShowHint() || !isCurrentRangeValid()) {
|
||||
if (!isCurrentRangeValid()) {
|
||||
hideHint();
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user