This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

View | Details | Raw Unified | Return to bug 40346
Collapse All | Expand All

(-)src/org/netbeans/modules/debugger/jpda/JPDADebugger.java (-1 / +10 lines)
Lines 744-750 Link Here
744
    ) {
744
    ) {
745
        if (System.getProperty ("netbeans.debug.step") != null)
745
        if (System.getProperty ("netbeans.debug.step") != null)
746
            System.err.println("  JPDADebugger.makeCurrent");
746
            System.err.println("  JPDADebugger.makeCurrent");
747
            
747
748
        // 'clear' clipboard
749
        java.awt.datatransfer.StringSelection ss = new java.awt.datatransfer.StringSelection("");
750
        java.awt.Toolkit.getDefaultToolkit().getSystemClipboard().setContents(ss, ss);
751
752
        
748
        // 1) set current thread
753
        // 1) set current thread
749
        JPDAThread tt = threadManager.getThread (tr);
754
        JPDAThread tt = threadManager.getThread (tr);
750
        setCurrentThread (tt);
755
        setCurrentThread (tt);
Lines 837-842 Link Here
837
            getStepManager ().stop ();
842
            getStepManager ().stop ();
838
            if (getLastAction () != ACTION_RUN_TO_CURSOR)
843
            if (getLastAction () != ACTION_RUN_TO_CURSOR)
839
                setLastAction (ACTION_BREAKPOINT_HIT);
844
                setLastAction (ACTION_BREAKPOINT_HIT);
845
846
            // 'clear' clipboard
847
            java.awt.datatransfer.StringSelection ss = new java.awt.datatransfer.StringSelection("");
848
            java.awt.Toolkit.getDefaultToolkit().getSystemClipboard().setContents(ss, ss);
840
            
849
            
841
            // 1) set current thread
850
            // 1) set current thread
842
            setCurrentThread (thread);
851
            setCurrentThread (thread);

Return to bug 40346