Can Resource Navigator display files with specific extensions [message #235679] |
Thu, 14 June 2007 08:26  |
Eclipse User |
|
|
|
Originally posted by: rajmohanpk.hcl.in
Hi,
I'm developing an application using GEF and RCP. Currently the Resource
Navigator displays all the files in the workspace, is it possible to
provide a filter to list files with specific extensions. (for example,
xml, .jpg etc). I need this, because currently when i create a Project,
it creates a ".project" file, which i doesnt need to display in the
Navigator window, (i attempted to remove it, but when i refresh the
project, the ".project" file reappears). Please help. Thanks in advance.
Rajmohan
|
|
|
Re: Can Resource Navigator display files with specific extensions [message #235693 is a reply to message #235679] |
Thu, 14 June 2007 09:40   |
Eclipse User |
|
|
|
Hi
The extension point to do this is org.eclipse.ui.ide.resourceFilters.
Cheers...
Anthony
"Rajmohan" <rajmohanpk@hcl.in> wrote in message
news:b5691c9ba8b7b179182e693c350d46f1$1@www.eclipse.org...
> Hi,
>
> I'm developing an application using GEF and RCP. Currently the Resource
> Navigator displays all the files in the workspace, is it possible to
> provide a filter to list files with specific extensions. (for example,
> xml, .jpg etc). I need this, because currently when i create a Project, it
> creates a ".project" file, which i doesnt need to display in the Navigator
> window, (i attempted to remove it, but when i refresh the project, the
> ".project" file reappears). Please help. Thanks in advance.
>
> Rajmohan
>
|
|
|
|
|
Re: Can Resource Navigator display files with specific extensions [message #240697 is a reply to message #235973] |
Mon, 14 January 2008 07:30  |
Eclipse User |
|
|
|
I have come up against this problem too.
I have extended the extension point "org.eclipse.ui.ide.resourceFilter". But this problem still exist.
So I investigated the eclipse source code. I found out there are some codes in FiltersContentProvider.class as below:
IExtensionPoint extension = Platform.getExtensionRegistry() .getExtensionPoint(ResourcePatternFilter.FILTERS_TAG);
And ResourcePatternFilter.FILTERS_TAG is "resourceFilters", is not "org.eclipse.ui.ide.resourceFilter". So the result extension is null.
At last, the filter extension could not be registered into the Navigator.
|
|
|
Powered by
FUDForum. Page generated in 0.05736 seconds