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 36330

Summary: Open file dialog: allow modules to specify icon and file ext. filter
Product: utilities Reporter: santhosh <santhosh>
Component: Open FileAssignee: Jaroslav Havlin <jhavlin>
Status: STARTED ---    
Severity: blocker CC: pzajac
Priority: P3    
Version: 3.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description santhosh 2003-09-29 12:32:38 UTC
# add file filters to open file dialog when a 
module is installed and remove those filters when
that module is uninstalled.

# able to specify icon for files with some 
extension. 
for example:
   it will be nice if the java files are shown 
with the same icon as in explorer.
Comment 1 Marian Petras 2003-09-29 17:06:15 UTC
It is a reasonable request to allow other modules to specify
 - custom icons
 - custom file filter(s)
for the Open file dialog for files they (the modules) define.
Comment 2 Marian Petras 2003-09-29 17:07:28 UTC
In the current sources, the set of file filters is hard-coded in method

   org.netbeans.modules.openfile.OpenFileAction.prepareFileChooser()

and no file filter is used. The above method could look for registered
icons and file filters and make the file chooser to use them.

Modules could register icons and file filters via XML layers, the Open
File module would aks for them using Lookup.
Comment 3 Marian Petras 2003-09-29 17:08:48 UTC
Correction:
... and no special icons are used.
Comment 4 Jiri Vagner 2008-09-17 10:53:57 UTC
*** Issue 147362 has been marked as a duplicate of this issue. ***
Comment 5 Jiri Vagner 2008-09-17 11:09:59 UTC
It looks like that extension filters are still hardcoded. Especially inside PHP-only or Ruby-only IDE bundle it looks ugly.
Comment 6 Jaroslav Havlin 2013-09-04 11:44:31 UTC
(In reply to Jiri Vagner from comment #5)
> It looks like that extension filters are still hardcoded.
Filters are not hardcoded any more, see bug 209998.