From f6ea7db2c9f40448e1bb9ecddc82d06ab937f197 Mon Sep 17 00:00:00 2001 From: "andrey.zaytsev" Date: Mon, 13 Feb 2012 19:55:13 +0400 Subject: [PATCH] OC-262 Debugger: Exception breakpoint. --- .../com/intellij/xdebugger/XDebuggerTestUtil.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/platform/xdebugger-impl/testSrc/com/intellij/xdebugger/XDebuggerTestUtil.java b/platform/xdebugger-impl/testSrc/com/intellij/xdebugger/XDebuggerTestUtil.java index 7d983d653130..7772f2e9426d 100644 --- a/platform/xdebugger-impl/testSrc/com/intellij/xdebugger/XDebuggerTestUtil.java +++ b/platform/xdebugger-impl/testSrc/com/intellij/xdebugger/XDebuggerTestUtil.java @@ -69,6 +69,15 @@ public class XDebuggerTestUtil { XDebuggerUtil.getInstance().toggleLineBreakpoint(project, file, line); } + public static

void insertBreakpoint(final Project project, final P properties, final Class, P>> typeClass) { + new WriteAction() { + protected void run(final Result result) { + XBreakpointManager breakpointManager = XDebuggerManager.getInstance(project).getBreakpointManager(); + breakpointManager.addBreakpoint((XBreakpointType,P>)XDebuggerUtil.getInstance().findBreakpointType(typeClass), properties); + } + }.execute(); + } + public static void assertPosition(XSourcePosition pos, VirtualFile file, int line) throws IOException { Assert.assertNotNull(pos); Assert.assertEquals(new File(file.getPath()).getCanonicalPath(), new File(pos.getFile().getPath()).getCanonicalPath());