Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Issues with resource filters
Issues with resource filters [message #683990] Tue, 14 June 2011 20:10 Go to next message
Eugene K is currently offline Eugene KFriend
Messages: 7
Registered: February 2010
Junior Member
Hello All,

I am having strange behavior with linked resource filters. I create filters programmatically:

container.createFilter(
IResourceFilterDescription.EXCLUDE_ALL |
IResourceFilterDescription.FOLDERS,
new FileInfoMatcherDescription("org.eclipse.ui.ide.patternFilterMatcher", "Test"),
IResource.BACKGROUND_REFRESH, new NullProgressMonitor());


Filters are created and resources are filtered. However, when I open Eclipse resource filter editing dialog I see following in the place of the filter pattern - "1.0-name-matches-false-false-Test".

When I click Apply or OK filters stop working. The next time I open this dialog I see Eclipse append extra string to the filter pattern - "1.0-name-matches-false-false-1.0-name-matches-false-false-Test". Extra ""1.0-name-matches-false-false-" is being added each time Apply or OK button is clicked.

Could someone explain this or help with setting resource filters from plugin?

Thanks,
Eugene

Re: Issues with resource filters [message #903569 is a reply to message #683990] Fri, 24 August 2012 11:28 Go to previous message
chavi   is currently offline chavi Friend
Messages: 64
Registered: April 2011
Member
Its too late for reply..
But still ,u can provide below argument to solve this issue

project.createFilter(IResourceFilterDescription.EXCLUDE_ALL | IResourceFilterDescription.FOLDERS|IResourceFilterDescription.FILES, new FileInfoMatcherDescription("org.eclipse.ui.ide.multiFilter", "1.0-name-matches-false-false-Test"),IResource.BACKGROUND_REFRESH, new NullProgressMonitor());
Previous Topic:FastView in Eclipse Juno
Next Topic:common navigator framework: adding popup menu entry under New Submenu
Goto Forum:
  


Current Time: Fri Nov 28 07:19:22 GMT 2014

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

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