Search in sources :

Example 1 with XsltBreakpointType

use of org.intellij.plugins.xsltDebugger.XsltBreakpointType in project intellij-community by JetBrains.

the class ContextTest method testXDebugger.

public void testXDebugger() throws Exception {
    final WorkingContextManager manager = getContextManager();
    final XBreakpointManager breakpointManager = XDebuggerManager.getInstance(getProject()).getBreakpointManager();
    final XsltBreakpointType type = XBreakpointType.EXTENSION_POINT_NAME.findExtension(XsltBreakpointType.class);
    ApplicationManager.getApplication().runWriteAction(() -> {
        XLineBreakpointImpl<XBreakpointProperties> breakpoint = (XLineBreakpointImpl<XBreakpointProperties>) breakpointManager.addLineBreakpoint(type, "foo", 0, null);
        final String name = "foo";
        manager.saveContext(name, null);
        breakpointManager.removeBreakpoint(breakpoint);
    });
    manager.loadContext("foo");
    Collection<? extends XLineBreakpoint<XBreakpointProperties>> breakpoints = breakpointManager.getBreakpoints(type);
    assertEquals(1, breakpoints.size());
    manager.clearContext();
}
Also used : XBreakpointProperties(com.intellij.xdebugger.breakpoints.XBreakpointProperties) XBreakpointManager(com.intellij.xdebugger.breakpoints.XBreakpointManager) XLineBreakpointImpl(com.intellij.xdebugger.impl.breakpoints.XLineBreakpointImpl) XsltBreakpointType(org.intellij.plugins.xsltDebugger.XsltBreakpointType)

Aggregations

XBreakpointManager (com.intellij.xdebugger.breakpoints.XBreakpointManager)1 XBreakpointProperties (com.intellij.xdebugger.breakpoints.XBreakpointProperties)1 XLineBreakpointImpl (com.intellij.xdebugger.impl.breakpoints.XLineBreakpointImpl)1 XsltBreakpointType (org.intellij.plugins.xsltDebugger.XsltBreakpointType)1