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.

Bug 107209

Summary: Class name is forgotten in new breakpoint dialog
Product: debugger Reporter: ehucka <ehucka>
Component: JavaAssignee: Martin Entlicher <mentlicher>
Status: VERIFIED FIXED    
Severity: blocker Keywords: REGRESSION, T9Y
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description ehucka 2007-06-19 14:10:01 UTC
Product Version: NetBeans IDE Dev (Build 200706180000) Java: 1.6.0_02; Java HotSpot(TM) Client VM 1.6.0_02-b04 System:
Linux version 2.6.16-1.2122_FC5 running on i386; UTF-8; en_US (nb)

Steps: 

1. move editor cursor to some method body
2. invoke new breakpoint action - new breakpoint dialog is shown with 'method' breakpoint type preselected
3. select class breakpoint

Result: Class name field is empty.

BTW I found out Class Name is shown in JEditorPane component for method breakpoints but in JTextField for class
breakpoint. I did not check field breakpoint.
Comment 1 Martin Entlicher 2007-06-20 13:40:32 UTC
Reproduced. Starting to search for why this stopped working...
Comment 2 Martin Entlicher 2007-06-20 15:04:17 UTC
This stopped to work, because JEditorPane is used in method breakpoint dialog instead of former JTextField. And
org.netbeans.editor.Registry.getMostActiveComponent() returns that JEditorPane, instead of the file editor! :-(
Comment 3 Martin Entlicher 2007-06-20 15:56:44 UTC
Fixed in trunk:

/shared/data/ccvs/repository/debuggerjpda/projects/src/org/netbeans/modules/debugger/jpda/projects/EditorContextImpl.java,v
 <--  EditorContextImpl.java
new revision: 1.25; previous revision: 1.24
Comment 4 ehucka 2007-06-22 10:38:01 UTC
verified