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 18294

Summary: Failure to fire change in Sort Mode of root folder of layer XML
Product: apisupport Reporter: Jesse Glick <jglick>
Component: ProjectAssignee: Jesse Glick <jglick>
Status: RESOLVED WONTFIX    
Severity: blocker CC: rmatous, vstejskal
Priority: P4    
Version: 3.x   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description Jesse Glick 2001-12-03 14:21:01 UTC
[r33 dec 03] Create an XML layer using apisupport. On its root folder
in the Explorer, set Sort Mode to e.g. By Name. You get in the layer:
<filesystem>
    <attr name="OpenIDE-Folder-SortMode" stringvalue="N"/>
</filesystem>
Now change the "N" to "C". The Sort Mode property in the prop sheet of
the <root folder> does not refresh. The Bean Browser shows that the
file attribute is now indeed "C". But apparently no file attribute
event was fired to cause FolderList to call changeComparator, perhaps
because the root file object is the root of a MultiFileSystem, or
perhaps this event was ignored. The apisupport has a MFS with one
delegate, a custom variant of XMLFS; when such a textual change is
made, the old delegate is removed, a fresh one from a parse created,
and setDelegates called. Note that the Template property is correctly
refreshed from a change in the XML. So either apisupport is not firing
a change correctly, MFS is not propagating it, or FolderList is not
handling it.
Comment 1 Marek Grummich 2002-07-22 08:21:21 UTC
Target milestone was changed from '3.4' to TBD.
Comment 2 Jesse Glick 2002-12-18 21:47:48 UTC
May be related to DataFolderTest failing.
Comment 3 Jesse Glick 2005-08-24 17:39:44 UTC
Have not evaluated vis-a-vis 4.2 yet.
Comment 4 Jesse Glick 2008-06-19 23:41:49 UTC
OpenIDE-Folder-SortMode is obsolete.