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 174433 - Default action is called when collapsing tree node (double click)
Summary: Default action is called when collapsing tree node (double click)
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Outline&TreeTable (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jiri Rechtacek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-13 11:54 UTC by Alexander Pepin
Modified: 2009-10-16 10:17 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Pepin 2009-10-13 11:54:29 UTC
Steps to reproduce:
- create Welcome sample
- do step into
- open Watches
- create a new watch for 'argc'
- create a new watch for 'argv'
- shrink the height of Watches window so that it could show no more than 4 or 5 lines
- double-click on 'argv' to expand it
- double-click on 'argv' to collapse it
Result: 'argv' gets collapsed and "Customize - argc" window appears. The same occurs in Variables if "Show Watches
inside Variables view" is enabled.
Comment 1 Egor Ushakov 2009-10-14 12:30:22 UTC
This appears in java also, I think it is a bug in the outline view, please evaluate.
To reproduce in java:
- debug any application
- open variables tab and find an expandable variable with 2-5 children
- reduce height of the tab so that only 3 items can fit in
- double click on the variable -> it will expand and show children
- double click it again, it will collapse and call default action
which does not happen if the height of the tab is enough to fit all children

this issue blocks testing automation
Comment 2 Jiri Rechtacek 2009-10-14 13:10:23 UTC
AFAIK it's designed to call default action on each double-click on node - try on e.g. Bundle.properties node. The
Bundle.properties will be opened in editor module regardless has children or not. I'll look on OV code which handles
default action if there might be any problem.
Comment 3 Jiri Rechtacek 2009-10-14 14:29:48 UTC
I can confirm a problem in NB6.8M2 build. Note: it's important not all nodes fit in view, in that case a doubleclick is
transfered from original folder node to one of its child. It seems as race condition problem. It should be fixed NB6.8.
Comment 4 Jiri Rechtacek 2009-10-14 18:14:57 UTC
I'm fixing it...
Comment 5 Jiri Rechtacek 2009-10-15 13:43:38 UTC
core-main/rev/74f9bbc2edcd
Comment 6 Quality Engineering 2009-10-16 10:17:31 UTC
Integrated into 'main-golden', will be available in build *200910160201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/74f9bbc2edcd
User: Jiri Rechtacek <jrechtacek@netbeans.org>
Log: #174433: Default action is called when collapsing tree node (double click)