IDEA-141464 Debugger popup dissappears when trying to hover mouse on "+"

This commit is contained in:
Egor.Ushakov
2015-06-25 16:21:55 +03:00
parent f5f2c42f42
commit b125ab24df
2 changed files with 24 additions and 3 deletions
@@ -301,4 +301,28 @@ public abstract class AbstractValueHint {
protected <D> void showTreePopup(@NotNull DebuggerTreeCreator<D> creator, @NotNull D descriptor) {
DebuggerTreeWithHistoryPopup.showTreePopup(creator, descriptor, getEditor(), myPoint, getProject());
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
AbstractValueHint hint = (AbstractValueHint)o;
if (!myProject.equals(hint.myProject)) return false;
if (!myEditor.equals(hint.myEditor)) return false;
if (myType != hint.myType) return false;
if (myCurrentRange != null ? !myCurrentRange.equals(hint.myCurrentRange) : hint.myCurrentRange != null) return false;
return true;
}
@Override
public int hashCode() {
int result = myProject.hashCode();
result = 31 * result + myEditor.hashCode();
result = 31 * result + myType.hashCode();
result = 31 * result + (myCurrentRange != null ? myCurrentRange.hashCode() : 0);
return result;
}
}
@@ -94,9 +94,6 @@ public class ValueLookupManager extends EditorMouseAdapter implements EditorMous
if (myRequest != null && !myRequest.isKeepHint(editor, point)) {
hideHint();
}
else if (type == ValueHintType.MOUSE_OVER_HINT && myRequest != null && !myRequest.isHintHidden() && myRequest.isInsideCurrentRange(editor, point)) {
return;
}
for (DebuggerSupport support : mySupports) {
QuickEvaluateHandler handler = support.getQuickEvaluateHandler();