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 161398 - viewmodel doesn't re-sort on model change
Summary: viewmodel doesn't re-sort on model change
Status: RESOLVED WONTFIX
Alias: None
Product: platform
Classification: Unclassified
Component: Outline&TreeTable (show other bugs)
Version: 6.x
Hardware: Sun All
: P3 blocker (vote)
Assignee: Jiri Rechtacek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-28 03:33 UTC by ivan
Modified: 2010-02-04 14:30 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 ivan 2009-03-28 03:33:45 UTC
This is a distillation of a problem reported against SunStudio where 
if the locals view is sorted by Name, with each step the sort order 
reverts to unsorted, even though the column indicates sorting
(using the v or ^ icon).


NB itself when debugging Java also has a variation on this problem.
Two examples:
Enable sorting by name in the java debugger locals view.
1 step through some code which has local declarations in the middle of a block.
  Unlike sunstudio with each step the sort order is maintained.
  But as you step over the stmt which has a local declaration and that variable
  gets added to the locals view it gets tacked on w/o consideration of sorting.

I suspect that jpda's local variable objects don't get re-added on each
step which is why this bug isn't very noticable. In SunStudio we get a fresh list
on each step and replace the "model". This theory can be confirmed with
another experiment:

2  stop in some deeply nested function, enable sort ordering for locals.
   as you move and and down the stack the sort order isn't maintained.
   presumably because the locals view model gets changed as one moevs
   around stack frames.

This adds credence to the theory that viewmodel doesn't re-sort 
when the model drastically changes.
Comment 1 Jiri Rechtacek 2009-04-06 13:52:57 UTC
Sorting in TTV was fixed in the last-minute (http://www.netbeans.org/issues/show_bug.cgi?id=152857), now TTV won't be
fixed anymore. It was replaces by OV in debugger views.
Comment 2 Quality Engineering 2009-11-02 11:04:50 UTC
NetBeans.org Migration: changing resolution from LATER to WONTFIX
Comment 3 ivan 2010-02-04 14:30:49 UTC
OV seems to fix this problem.