mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
do not show disabled drag cursor for the same line the breakpoint is on
This commit is contained in:
+5
-3
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user