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 230085 - File chooser filters do not work
Summary: File chooser filters do not work
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 7.4
Hardware: PC Solaris
: P2 normal (vote)
Assignee: Maria Tishkova
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2013-05-22 09:13 UTC by Alexander Simon
Modified: 2013-05-23 02:35 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 Alexander Simon 2013-05-22 09:13:21 UTC
For example try to use file filters in the dialog:
Project properties->Linker->Add library
Comment 1 Alexander Simon 2013-05-22 09:15:36 UTC
Please evaluate.
Probably it is a consequence of resent changes in the file chooser
Comment 2 soldatov 2013-05-22 09:23:05 UTC
Also:
- Call "Add Existing Item..." wizard
- Select some file and call context menu
- Select Delete
==> NPE
Comment 3 soldatov 2013-05-22 09:25:53 UTC
java.lang.NullPointerException
	at org.netbeans.modules.remote.api.ui.FileChooserUIImpl.fireSelectedFilesChanged(FileChooserUIImpl.java:1521)
	at org.netbeans.modules.remote.api.ui.FileChooserUIImpl.access$3500(FileChooserUIImpl.java:165)
	at org.netbeans.modules.remote.api.ui.FileChooserUIImpl$15.propertyChange(FileChooserUIImpl.java:1662)
	at java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:335)
	at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:327)
	at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:263)
	at java.awt.Component.firePropertyChange(Component.java:8382)
	at javax.swing.JFileChooser.setSelectedFiles(JFileChooser.java:524)
	at org.netbeans.modules.remote.api.ui.FileChooserUIImpl.setSelected(FileChooserUIImpl.java:1763)
	at org.netbeans.modules.remote.api.ui.FileChooserUIImpl.access$2500(FileChooserUIImpl.java:165)
	at org.netbeans.modules.remote.api.ui.FileChooserUIImpl$11.run(FileChooserUIImpl.java:1089)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:727)
	at java.awt.EventQueue.access$200(EventQueue.java:103)
	at java.awt.EventQueue$3.run(EventQueue.java:688)
	at java.awt.EventQueue$3.run(EventQueue.java:686)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:697)
	at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:159)
[catch] at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:154)
	at java.awt.WaitDispatchSupport$2.run(WaitDispatchSupport.java:182)
	at java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:221)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.awt.WaitDispatchSupport.enter(WaitDispatchSupport.java:219)
	at java.awt.Dialog.show(Dialog.java:1082)
	at javax.swing.JFileChooser.showDialog(JFileChooser.java:741)
	at org.netbeans.modules.remote.api.ui.FileChooserBuilder$LocalFileChooserImpl.showDialog(FileChooserBuilder.java:245)
	at javax.swing.JFileChooser.showOpenDialog(JFileChooser.java:639)
	at org.netbeans.modules.cnd.makeproject.api.actions.AddExistingItemAction.performAction(AddExistingItemAction.java:143)
	at org.openide.util.actions.NodeAction$DelegateAction$1.run(NodeAction.java:586)
	at org.openide.util.actions.ActionInvoker$1.run(ActionInvoker.java:95)
	at org.openide.util.actions.ActionInvoker.doPerformAction(ActionInvoker.java:116)
	at org.openide.util.actions.ActionInvoker.invokeAction(ActionInvoker.java:99)
	at org.openide.util.actions.NodeAction$DelegateAction.actionPerformed(NodeAction.java:583)
	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018)
	at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2341)
	at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
	at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
	at javax.swing.AbstractButton.doClick(AbstractButton.java:376)
	at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:833)
	at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:877)
Comment 4 Maria Tishkova 2013-05-22 10:19:34 UTC
fixed in http://hg.netbeans.org/cnd-main/rev/3c29ff110342

Please verify
Comment 5 Maria Tishkova 2013-05-22 11:10:31 UTC
As a workaround you can first select file filter and after that re-enter to the directory
Comment 6 Quality Engineering 2013-05-23 02:35:28 UTC
Integrated into 'main-golden', will be available in build *201305222300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/3c29ff110342
User: Maria Tishkova <mromashova@netbeans.org>
Log: fixed #230085 - File chooser filters do not work