Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Eclipse removes my resource filters
Eclipse removes my resource filters [message #1444939] Tue, 14 October 2014 15:55 Go to next message
Eclipse UserFriend
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 17:56] by Moderator

Re: Eclipse removes my resource filters [message #1445572 is a reply to message #1444939] Wed, 15 October 2014 12:22 Go to previous messageGo to next message
Eclipse UserFriend
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 13:53 Go to previous messageGo to next message
Eclipse UserFriend
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 15:04 Go to previous messageGo to next message
Eclipse UserFriend
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 15:31 Go to previous messageGo to next message
Eclipse UserFriend
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] Wed, 15 October 2014 21:24 Go to previous messageGo to next message
Eclipse UserFriend
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 14:54 Go to previous messageGo to next message
Eclipse UserFriend
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 15:07 Go to previous messageGo to next message
Eclipse UserFriend
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 14:41 Go to previous messageGo to next message
Eclipse UserFriend
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 11:51 Go to previous messageGo to next message
Eclipse UserFriend
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 12:10 Go to previous messageGo to next message
Eclipse UserFriend
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 17:54 Go to previous message
Eclipse UserFriend
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 Jul 10 07:19:24 EDT 2025

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

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

Back to the top