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 223021 - Strange behaviour while toggling checkboxes in "Replace in search results" view
Summary: Strange behaviour while toggling checkboxes in "Replace in search results" view
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Outline&TreeTable (show other bugs)
Version: 7.3
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords: API, API_REVIEW_FAST
Depends on:
Blocks:
 
Reported: 2012-11-29 23:13 UTC by markiewb
Modified: 2013-02-13 01:52 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Proposed Patch (2.89 KB, patch)
2012-11-30 14:11 UTC, Jaroslav Havlin
Details | Diff
The API change. (4.68 KB, patch)
2013-01-24 15:58 UTC, Martin Entlicher
Details | Diff
The test of the checkAt() method. (8.75 KB, text/x-java)
2013-01-25 12:49 UTC, Martin Entlicher
Details

Note You need to log in before you can comment on or make changes to this bug.
Description markiewb 2012-11-29 23:13:39 UTC
[ BUILD # : 201211290002 ]
[ JDK VERSION : 1.7.0_09 ]

While testing http://wiki.netbeans.org/TS_60_Utilities the following strange 
behaviour could be spotted.

* invoke "Replace in project" and search -> there should be results in view 
"search results", all nodes in view are checked
* choose "view as list" mode
* click on the checkbox of the first node several times 
ACTUAL: checkbox is NOT toggled every time
EXPECTED : checkbox is toggled every time

* redo the search
* choose "view as tree" mode
* click on the checkbox of the first node --> gets unchecked
* click on the checkbox of the first node several times 
ACTUAL: checkbox is not checked, the node expands
EXPECTED : checkbox is checked, the node does not expand

-----
Product Version: NetBeans IDE Dev (Build 201211290002)
Java: 1.7.0_10-ea; Java HotSpot(TM) 64-Bit Server VM 23.6-b04
Runtime: Java(TM) SE Runtime Environment 1.7.0_10-ea-b17
System: Windows 7 version 6.1 running on amd64; Cp1252; de_DE (nb)
Comment 1 Jaroslav Havlin 2012-11-30 14:11:02 UTC
Created attachment 128655 [details]
Proposed Patch
Comment 2 Jaroslav Havlin 2012-11-30 14:18:03 UTC
The problem is caused by OutlineView that cannot detect checkbox clicks.

Please check the proposed patch. Note that the API of class Outline was
modified. Thanks.
Feel free to assign back to me to prepare apichanges.xml, spec. version, etc.
Comment 3 Martin Entlicher 2013-01-24 15:58:59 UTC
Created attachment 130595 [details]
The API change.

Thanks for the patch, it works fine.
Adding a patch for API review. I'll provide a test shortly as well.
Comment 4 Martin Entlicher 2013-01-25 12:49:15 UTC
Created attachment 130646 [details]
The test of the checkAt() method.
Comment 5 Martin Entlicher 2013-01-25 12:50:12 UTC
Please review this simple API change. Thanks.
Comment 6 Martin Entlicher 2013-02-11 14:41:08 UTC
The change is pushed as changeset:   245982:e85d7a07aae2
http://hg.netbeans.org/core-main/rev/e85d7a07aae2
Comment 7 Quality Engineering 2013-02-13 01:52:59 UTC
Integrated into 'main-golden', will be available in build *201302122300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/e85d7a07aae2
User: mentlicher@netbeans.org
Log: #223021: A protected checkAt() method added to Outline. The check box is checked/unchecked regardless on mouse click counts.