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 145543 - Preserve state of nodes (expanded/collapsed) when filtering test results
Summary: Preserve state of nodes (expanded/collapsed) when filtering test results
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: JUnit (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Theofanis Oikonomou
URL:
Keywords: UI
Depends on:
Blocks:
 
Reported: 2008-08-29 10:29 UTC by Marian Petras
Modified: 2011-11-04 12:08 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
source code patch for NB 6.5 dev. (11.47 KB, patch)
2008-08-29 10:33 UTC, Marian Petras
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Marian Petras 2008-08-29 10:29:37 UTC
When the filter for passed/failed nodes is activated, only failures are displayed - nodes representing passed tests are
removed. When the filter is later deactivated, these nodes are re-added (which is correct) but their expanded/collapsed
state is not preserved. It would be nice if the state was preserved.
Comment 1 Marian Petras 2008-08-29 10:33:55 UTC
Created attachment 68609 [details]
source code patch for NB 6.5 dev.
Comment 2 Marian Petras 2008-08-29 10:40:25 UTC
I attached an initial patch. It is not fully functional. The significant issue with it is that it stores state of nodes
at the moment the filter is enabled and later tries to apply the stored state to the nodes when the filter is disabled.
The consequence of this is that if the user collapsed some nodes since he/she had enabled the filter, these nodes are
re-expanded when the filter is disabled. Besides this, there is also an issue with disappearing nodes representing call
stack frames - this may be a bug in the NetBeans nodes subsystem.