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 56650 - Cloned document sorts other document
Summary: Cloned document sorts other document
Status: NEW
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 4.x
Hardware: All All
: P4 blocker (vote)
Assignee: issues@platform
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-18 15:56 UTC by _ proxity
Modified: 2009-10-05 13:43 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Shows cloned view of a simple properties file. At the moment sorted by Key. (20.09 KB, image/jpeg)
2005-04-26 11:35 UTC, _ proxity
Details
Now I clicked on Value in the second view. Bug: the first view is sorted, too. However the column indicator is not updated in the first view. (20.35 KB, image/jpeg)
2005-04-26 11:36 UTC, _ proxity
Details
The sort indicator in the first view is updated when the view is activated. (20.67 KB, image/jpeg)
2005-04-26 11:40 UTC, _ proxity
Details

Note You need to log in before you can comment on or make changes to this bug.
Description _ proxity 2005-03-18 15:56:58 UTC
Note: IMHO "Clone document" in the GUI is misleading, it should be "Clone view"
as the document (file) is not really cloned (copied)

When you clone a .properties file view, e.g. to simultaneously edit some lines
at the top and some lines at the bottom, you can see that sorting is not
implemented very well:

When you click on the column header in one view, the other view is also sorted!
This is clearly a violation of the MVC paradigm. As this way of sorting is only
sorting the view and not the document (which is only manipulated by the
controller) other views shouldn't be sorted, too. Sortation should be local to
the view as is the cursor position.

Additionally you can see, that the sortation indicator in the column header in
the second view is not updated until you click in it.
Comment 1 Jiri Rechtacek 2005-03-18 19:23:53 UTC
I guess it's windowsystem competent.
Comment 2 David Simonek 2005-04-25 17:17:52 UTC
I have to say I don't understand the problem at all. Any pictures or simplified
explanation, please?
Comment 3 Marian Mirilovic 2005-04-26 07:18:44 UTC
 this is UI question so reassigne to HIE

In fact, this use case is valid, if you clone document, it could mean you can
change the view, but it isn't true in current implementation ;(
Comment 4 _ proxity 2005-04-26 11:35:10 UTC
Created attachment 21864 [details]
Shows cloned view of a simple properties file. At the moment sorted by Key.
Comment 5 _ proxity 2005-04-26 11:36:44 UTC
Created attachment 21865 [details]
Now I clicked on Value in the second view. Bug: the first view is sorted, too. However the column indicator is not updated in the first view.
Comment 6 _ proxity 2005-04-26 11:40:36 UTC
Created attachment 21866 [details]
The sort indicator in the first view is updated  when the view is activated.
Comment 7 _ proxity 2005-04-26 11:42:05 UTC
dsimonek, I hope it's clear now. Sorting one view shouldn't affect the other
one. Any display setting that's local to a view shouldn't affect cloned views.
Comment 8 David Simonek 2005-04-26 18:01:24 UTC
I see, thanks.
Comment 9 _ proxity 2009-10-02 14:14:56 UTC
This problem ist still present in 6.7!
Comment 10 Ondrej Langr 2009-10-05 13:43:44 UTC
Nothing unclear from UI point of view, reporter is right on this observation. Reassigning back to component owner.