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 43189 - remove SortMode from non-SFS DataFolder's
Summary: remove SortMode from non-SFS DataFolder's
Status: CLOSED WONTFIX
Alias: None
Product: platform
Classification: Unclassified
Component: Data Systems (show other bugs)
Version: 4.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-13 09:15 UTC by David Konecny
Modified: 2008-12-23 11:16 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Almost finished impl. Might be out of date now. (40.77 KB, patch)
2004-08-17 11:24 UTC, David Konecny
Details | Diff
found code changes in core which I forgot to attach (6.22 KB, patch)
2004-08-20 16:00 UTC, David Konecny
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description David Konecny 2004-05-13 09:15:51 UTC
It uses .nbattrs which usage should be eliminated
(issue 42412) and anyway it does not make much
sense - a global SortMode setting used by all
folders should be enough.
Comment 1 David Konecny 2004-08-17 11:24:54 UTC
Created attachment 16876 [details]
Almost finished impl. Might be out of date now.
Comment 2 David Konecny 2004-08-20 16:00:35 UTC
Created attachment 16986 [details]
found code changes in core which I forgot to attach
Comment 3 pzajac 2005-01-05 10:31:57 UTC
Please fix this issue. A ITE is thrown when the order property is changed.

java.lang.reflect.InvocationTargetException
	at org.openide.loaders.DataFolder$3.setValue(DataFolder.java:1148)
	at
org.openide.explorer.propertysheet.NodePropertyModel.setValue(NodePropertyModel.java:80)
	at
org.openide.explorer.propertysheet.PropUtils.noDlgUpdateProp(PropUtils.java:430)
	at
org.openide.explorer.propertysheet.PropUtils.updateProp(PropUtils.java:404)
	at
org.openide.explorer.propertysheet.PropUtils.updateProp(PropUtils.java:501)
	at
org.openide.explorer.propertysheet.SheetCellEditor.stopCellEditing(SheetCellEditor.java:288)
	at
org.openide.explorer.propertysheet.SheetCellEditor.actionPerformed(SheetCellEditor.java:175)
	at javax.swing.JComboBox.fireActionEvent(JComboBox.java:1197)
	at
org.openide.explorer.propertysheet.ComboInplaceEditor.fireActionEvent(ComboInplaceEditor.java:174)
	at javax.swing.JComboBox.setSelectedItem(JComboBox.java:561)
	at
org.openide.explorer.propertysheet.ComboInplaceEditor.setSelectedItem(ComboInplaceEditor.java:156)
	at javax.swing.JComboBox.setSelectedIndex(JComboBox.java:597)
	at
javax.swing.plaf.basic.BasicComboPopup$ListMouseHandler.mouseReleased(BasicComboPopup.java:749)
	at
java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:232)
	at java.awt.Component.processMouseEvent(Component.java:5100)
	at
javax.swing.plaf.basic.BasicComboPopup$2.processMouseEvent(BasicComboPopup.java:452)
	at java.awt.Component.processEvent(Component.java:4897)
	at java.awt.Container.processEvent(Container.java:1569)
	at java.awt.Component.dispatchEventImpl(Component.java:3615)
	at java.awt.Container.dispatchEventImpl(Container.java:1627)
	at java.awt.Component.dispatchEvent(Component.java:3477)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
	at java.awt.Container.dispatchEventImpl(Container.java:1613)
	at java.awt.Window.dispatchEventImpl(Window.java:1606)
	at java.awt.Component.dispatchEvent(Component.java:3477)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
	at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
	at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
Caused by: java.io.IOException
	at
org.openide.filesystems.JarFileSystem.writeAttribute(JarFileSystem.java:515)
	at
org.openide.filesystems.JarFileSystem$Impl.writeAttribute(JarFileSystem.java:939)
	at
org.openide.filesystems.AbstractFileObject.setAttribute(AbstractFileObject.java:286)
	at
org.openide.filesystems.AbstractFileObject.setAttribute(AbstractFileObject.java:272)
	at org.openide.loaders.DataFolder$SortMode.write(DataFolder.java:1007)
	at org.openide.loaders.FolderOrder.setSortMode(FolderOrder.java:75)
	at org.openide.loaders.DataFolder.setSortMode(DataFolder.java:195)
	at org.openide.loaders.DataFolder$3.setValue(DataFolder.java:1146)
[catch] ... 32 more
==>
java.io.IOException
	at
org.openide.filesystems.JarFileSystem.writeAttribute(JarFileSystem.java:515)
	at
org.openide.filesystems.JarFileSystem$Impl.writeAttribute(JarFileSystem.java:939)
	at
org.openide.filesystems.AbstractFileObject.setAttribute(AbstractFileObject.java:286)
	at
org.openide.filesystems.AbstractFileObject.setAttribute(AbstractFileObject.java:272)
	at org.openide.loaders.DataFolder$SortMode.write(DataFolder.java:1007)
	at org.openide.loaders.FolderOrder.setSortMode(FolderOrder.java:75)
	at org.openide.loaders.DataFolder.setSortMode(DataFolder.java:195)
	at org.openide.loaders.DataFolder$3.setValue(DataFolder.java:1146)
	at
org.openide.explorer.propertysheet.NodePropertyModel.setValue(NodePropertyModel.java:80)
	at
org.openide.explorer.propertysheet.PropUtils.noDlgUpdateProp(PropUtils.java:430)
	at
org.openide.explorer.propertysheet.PropUtils.updateProp(PropUtils.java:404)
	at
org.openide.explorer.propertysheet.PropUtils.updateProp(PropUtils.java:501)
	at
org.openide.explorer.propertysheet.SheetCellEditor.stopCellEditing(SheetCellEditor.java:288)
	at
org.openide.explorer.propertysheet.SheetCellEditor.actionPerformed(SheetCellEditor.java:175)
	at javax.swing.JComboBox.fireActionEvent(JComboBox.java:1197)
	at
org.openide.explorer.propertysheet.ComboInplaceEditor.fireActionEvent(ComboInplaceEditor.java:174)
	at javax.swing.JComboBox.setSelectedItem(JComboBox.java:561)
	at
org.openide.explorer.propertysheet.ComboInplaceEditor.setSelectedItem(ComboInplaceEditor.java:156)
	at javax.swing.JComboBox.setSelectedIndex(JComboBox.java:597)
	at
javax.swing.plaf.basic.BasicComboPopup$ListMouseHandler.mouseReleased(BasicComboPopup.java:749)
	at
java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:232)
	at java.awt.Component.processMouseEvent(Component.java:5100)
	at
javax.swing.plaf.basic.BasicComboPopup$2.processMouseEvent(BasicComboPopup.java:452)
	at java.awt.Component.processEvent(Component.java:4897)
	at java.awt.Container.processEvent(Container.java:1569)
	at java.awt.Component.dispatchEventImpl(Component.java:3615)
	at java.awt.Container.dispatchEventImpl(Container.java:1627)
	at java.awt.Component.dispatchEvent(Component.java:3477)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
	at java.awt.Container.dispatchEventImpl(Container.java:1613)
	at java.awt.Window.dispatchEventImpl(Window.java:1606)
	at java.awt.Component.dispatchEvent(Component.java:3477)
[catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
	at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
	at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
Comment 4 Jaroslav Tulach 2005-02-04 18:02:13 UTC
.nbattrs are gone. Any reason why this shall be still treated as a bug?
Comment 5 Marian Mirilovic 2005-12-22 15:02:05 UTC
verified/closed