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 - Open file dialog: allow modules to specify icon and file ext. filter
Summary: Open file dialog: allow modules to specify icon and file ext. filter
Status: STARTED
Alias: None
Product: utilities
Classification: Unclassified
Component: Open File (show other bugs)
Version: 3.x
Hardware: All All
: P3 blocker with 1 vote (vote)
Assignee: Jaroslav Havlin
URL:
Keywords:
: 147362 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-09-29 12:32 UTC by santhosh
Modified: 2013-09-04 11:44 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.