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.
Product Version: NetBeans IDE Dev (Build 201102220001) Java: 1.6.0_24; Java HotSpot(TM) Client VM 19.1-b02 System: Linux version 2.6.35-22-generic running on i386; UTF-8; cs_CZ (nb) Userdir: /home/cesilko/.netbeans/dev Description: ============ It would be nice if "Edit" action takes context into account. Right now it only edits original watch and not fixed watches. Steps to reproduce: =================== 1. Create sample AnagramGame application. 2. Toggle breakpoint at line 54 in Anagrams.java and press Ctrl+F5. 3. Once the breakpoint is hit, invoke "Debug > New Watch..." from main menu. 4. Type "new Long(1)" into Watch Expression field and push "OK" button. 5. Right click "new Long(1)" watch node and invoke "Create Fixed Watch". 6. Right click newly created "new Long(1)" fixed watch node and invoke "Edit" from its popup menu. 7. Change it to "new Long(2)" and push "OK" - the original watch will be updated and not the fixed one.
There's no real support for editing of fixed watches in the code, therefore the current behavior is a strange side-effect. As a fast solution, I've disabled editing of fixed watches. It should not be a big problem, the fixed watches were designed as "fixed" anyway and a new fixed watch can be created from a modified watch when necessary. Fixed by changeset: 190486:5d82a4184787 http://hg.netbeans.org/main/rev/5d82a4184787
Integrated into 'main-golden', will be available in build *201103080000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/5d82a4184787 User: mentlicher@netbeans.org Log: #195873 Disable editing of fixed watches.