Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Can Resource Navigator display files with specific extensions
Can Resource Navigator display files with specific extensions [message #235679] Thu, 14 June 2007 12:26 Go to next message
Eclipse UserFriend
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 13:40 Go to previous messageGo to next message
Anthony Hunter is currently offline Anthony HunterFriend
Messages: 446
Registered: July 2009
Senior Member
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 #235966 is a reply to message #235693] Tue, 19 June 2007 11:57 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: rajmohanpk.hcl.in

My RCP product configuration includes two plugins (a GEF, and an RCP
workbench), in both the plugin.xml files, i have have included the
following extension, but still it *DOESN'T work*. The navigator window
still displays the ".project" file, when projects are created. Please help.

<extension
point="org.eclipse.ui.ide.resourceFilters">
<filter
pattern="*.project"
selected="false">
</filter>
</extension>
Re: Can Resource Navigator display files with specific extensions [message #235973 is a reply to message #235966] Tue, 19 June 2007 12:38 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: rajmohanpk.hcl.in

it worked, instead i mentioned the selected value as true.

<extension
point="org.eclipse.ui.ide.resourceFilters">
<filter
pattern=".project"
selected="true">
</filter>
</extension>
Re: Can Resource Navigator display files with specific extensions [message #240697 is a reply to message #235973] Mon, 14 January 2008 12:30 Go to previous message
HuJuan is currently offline HuJuanFriend
Messages: 1
Registered: July 2009
Junior Member
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.
Previous Topic:Figure Problem
Next Topic:GMF : How To add Element in the Link Mapping..
Goto Forum:
  


Current Time: Wed Apr 24 13:36:43 GMT 2024

Powered by FUDForum. Page generated in 0.03527 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top