Package com.qspin.qtaste.debug

Examples of com.qspin.qtaste.debug.Breakpoint


                Object extraData = lastBreakEvent.getExtraData();
                if (extraData instanceof Breakpoint) {
                    if (pane instanceof NonWrappingTextPane)
                    {
                      NonWrappingTextPane textPane = (NonWrappingTextPane)pane;
                        Breakpoint breakpoint = (Breakpoint)extraData;
                        Document doc = pane.getDocument();
                        if (doc instanceof SyntaxDocument) {
                            String fileName = textPane.getFileName();
                            int ScriptLineNumber = breakpoint.getLineIndex();
                            if ( (line == ScriptLineNumber) && fileName.equals(breakpoint.getFileName()))
                            {
                                // draw a sign to signals that break has been reached
                                Color penColor = g.getColor();
                                g.setColor(breakpointReachedColor);
                                //g.fillRect(25,y-5,35,fontHeight-10);
View Full Code Here


                tabbedPane.setSelectedIndex(SOURCE_INDEX);
                getTcSourcePane().setVisible(true);
                // set the current line highlighted
                Object extraData = event.getExtraData();
                if (extraData instanceof Breakpoint) {
                    Breakpoint breakpoint = (Breakpoint) extraData;

                    // load the file into the tabbedPaned
                    File f = new File(breakpoint.getFileName());
                    NonWrappingTextPane textPane = null;
                    if (f.exists() && f.canRead()) {

                        textPane = loadTestCaseSource(f, true, f.getName().equals(StaticConfiguration.TEST_SCRIPT_FILENAME));
                        tabbedPane.setSelectedIndex(TestCasePane.SOURCE_INDEX);
                        // now go to the given line
                        textPane.selectLine(breakpoint.getLineIndex());
                        textPane.getLineNumberPanel().update(event);
                    }
                }
                break;
        }
View Full Code Here

      if (tcl==null) return;
        testbreakPointListeners.remove(tcl);
    }

    public void break_(String fileName, int lineNumber){
        TestScriptBreakpointEvent event = new TestScriptBreakpointEvent(this , TestScriptBreakpointEvent.Action.BREAK, new Breakpoint(fileName, lineNumber));
        doAction(event);
        logger.debug("DoAction TestScriptBreakpointEvent.Action.BREAK at " + fileName + ":" + lineNumber);
    }
View Full Code Here

TOP

Related Classes of com.qspin.qtaste.debug.Breakpoint

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.