do not show disabled drag cursor for the same line the breakpoint is on

This commit is contained in:
Egor.Ushakov
2015-12-09 18:47:20 +03:00
parent bb6a0cded7
commit 6cec9b2f42
@@ -240,9 +240,11 @@ public class XLineBreakpointImpl<P extends XBreakpointProperties> extends XBreak
}
private boolean canMoveTo(int line, VirtualFile file) {
return file != null &&
myType.canPutAt(file, line, getProject()) &&
getBreakpointManager().findBreakpointAtLine(myType, file, line) == null;
if (file != null && myType.canPutAt(file, line, getProject())) {
XLineBreakpoint<P> existing = getBreakpointManager().findBreakpointAtLine(myType, file, line);
return existing == null || existing == this;
}
return false;
}
public void updatePosition() {