Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Eclipse removes my resource filters
Eclipse removes my resource filters [message #1444939] Tue, 14 October 2014 19:55 Go to next message
Andrey Sotnikov is currently offline Andrey SotnikovFriend
Messages: 23
Registered: October 2014
Junior Member
My goal was to create a project in Eclipse that has only certain directories and files. I figured I can do it by setting filters on each folder. So I generated a .project file with the following filters:


Everything worked fine when I opened the project and refreshed the resource tree. However, when I exited Eclipse, my .project had only the top-level filters and few sub-folders. Where is the catch? Why Eclipse removed the rest?

[Updated on: Thu, 11 January 2018 22:56]

Report message to a moderator

Re: Eclipse removes my resource filters [message #1445572 is a reply to message #1444939] Wed, 15 October 2014 16:22 Go to previous messageGo to next message
Andrey Sotnikov is currently offline Andrey SotnikovFriend
Messages: 23
Registered: October 2014
Junior Member
I think I figured it out. Eclipse has problems with such long ids, though itself it creates them that long.
Re: Eclipse removes my resource filters [message #1445619 is a reply to message #1445572] Wed, 15 October 2014 17:53 Go to previous messageGo to next message
Andrey Sotnikov is currently offline Andrey SotnikovFriend
Messages: 23
Registered: October 2014
Junior Member
No, I was wrong. Eclipse still sometimes removes filters regardless of id lengths. Eclipse is an infinite source of really joyful frustration.

So is there any idea why Eclipse removes resource filters?
Re: Eclipse removes my resource filters [message #1445655 is a reply to message #1445619] Wed, 15 October 2014 19:04 Go to previous messageGo to next message
Eric Rizzo is currently offline Eric RizzoFriend
Messages: 3070
Registered: July 2009
Senior Member
If you create a filter the normal way (ie, via the UI that Eclipse provides), do they stick or are they, too, mysteriously removed? I suspect there is something subtle about the way you're trying to insert filters that's not kosher. Realize that you're mucking around in Eclipse's own internal state management behind its back, so it had better be *exactly* correct.
Re: Eclipse removes my resource filters [message #1445671 is a reply to message #1445655] Wed, 15 October 2014 19:31 Go to previous messageGo to next message
Andrey Sotnikov is currently offline Andrey SotnikovFriend
Messages: 23
Registered: October 2014
Junior Member
It doesn't remove them all, it leaves some, so I guess to check your theory I would have to manually add the amount of filters that surpass this threshold. It's quite an arduous task. Maybe I'll try on weekend. Or, I actually can try to add a filter manually and check what other files Eclipse changes besides .project. This is a thing I don't like about Eclipse: settings are randomly mashed among furiously random files.

Why it is behind its back? Can I, for example, edit .project file manually?
Re: Eclipse removes my resource filters [message #1445829 is a reply to message #1445671] Thu, 16 October 2014 01:24 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 10/15/2014 01:31 PM, Andrey Sotnikov wrote:
> It doesn't remove them all, it leaves some, so I guess to check your
> theory I would have to manually add the amount of filters that surpass
> this threshold. It's quite an arduous task. Maybe I'll try on weekend.
> Or, I actually can try to add a filter manually and check what other
> files Eclipse changes besides .project. This is a thing I don't like
> about Eclipse: settings are randomly mashed among furiously random files.
>
> Why it is behind its back? Can I, for example, edit .project file manually?

Yes, but...

a) don't do it while Eclipse has the project open because your changes
won't stick, and

b) you had better know what you're doing in there or you'll break the
project.
Re: Eclipse removes my resource filters [message #1446365 is a reply to message #1445829] Thu, 16 October 2014 18:54 Go to previous messageGo to next message
Andrey Sotnikov is currently offline Andrey SotnikovFriend
Messages: 23
Registered: October 2014
Junior Member
Russell Bateman wrote on Thu, 16 October 2014 01:24
a) don't do it while Eclipse has the project open because your changes won't stick, and
I don't do it.

Russell Bateman wrote on Thu, 16 October 2014 01:24
b) you had better know what you're doing in there or you'll break the project.
That's why I'm asking questions in this forum.
Re: Eclipse removes my resource filters [message #1446372 is a reply to message #1446365] Thu, 16 October 2014 19:07 Go to previous messageGo to next message
Eric Rizzo is currently offline Eric RizzoFriend
Messages: 3070
Registered: July 2009
Senior Member
This really isn't a "newcomer" type of question. I'm moving it to the JDT forum where it might get the right person to notice it.
Re: Eclipse removes my resource filters [message #1447066 is a reply to message #1446372] Fri, 17 October 2014 18:41 Go to previous messageGo to next message
Andrey Sotnikov is currently offline Andrey SotnikovFriend
Messages: 23
Registered: October 2014
Junior Member
I swear I'm a newcomer Smile. But thank you.
Re: Eclipse removes my resource filters [message #1449609 is a reply to message #1447066] Tue, 21 October 2014 15:51 Go to previous messageGo to next message
Andrey Sotnikov is currently offline Andrey SotnikovFriend
Messages: 23
Registered: October 2014
Junior Member
Eric, are you sure moving this topic to this forum was right? So far there is no reaction from the community.
Re: Eclipse removes my resource filters [message #1449618 is a reply to message #1449609] Tue, 21 October 2014 16:10 Go to previous messageGo to next message
Eric Rizzo is currently offline Eric RizzoFriend
Messages: 3070
Registered: July 2009
Senior Member
Sadly the JDT committers don't seem to be very active on this forum. You could try writing to one of the JDT dev mailing lists, either jdt-dev or jdt-core-dev. See https://projects.eclipse.org/projects/eclipse.jdt/contact
Re: Eclipse removes my resource filters [message #1779737 is a reply to message #1449618] Thu, 11 January 2018 22:54 Go to previous message
Andrey Sotnikov is currently offline Andrey SotnikovFriend
Messages: 23
Registered: October 2014
Junior Member
I found the culprit. The order of the filters matters. I sorted all filters by name and it started working.
Previous Topic:500 error and not the real exception
Next Topic:Updating Maven Dependencies would not terminate
Goto Forum:
  


Current Time: Thu Mar 28 17:12:23 GMT 2024

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

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

Back to the top