IDEA-77663: Lazy bookmark manager loading causes bookmarks to appear in editor only after some bookmark actions have been called. Also, ctrl/cmd+click bookmark toggling is re-done (never actually worked)

This commit is contained in:
Maxim Shafirov
2011-11-30 16:36:55 +04:00
parent f6ceb11990
commit 54e9577ba4
5 changed files with 45 additions and 20 deletions
@@ -289,6 +289,10 @@ public class BreakpointManager implements JDOMExternalizable {
if (event.getButton() != 1) {
return;
}
if (e.getMouseEvent().isControlDown() || e.getMouseEvent().isMetaDown()) {
return;
}
if (XDebuggerUtil.getInstance().canPutBreakpointAt(myProject, FileDocumentManager.getInstance().getFile(document), line)) {
return;
}