Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » IResource - how to ignore excluded folders
IResource - how to ignore excluded folders [message #1425374] Wed, 17 September 2014 08:05 Go to next message
Remi ADAM is currently offline Remi ADAMFriend
Messages: 14
Registered: July 2014
Junior Member
Hello,

In a Eclipse project, I have some folders which are grayed, because declared as excluded in the .cproject.

I need to parse this project and get the list of project resources.
I use org.eclipse.core.resources.
@Override
public boolean visit(IResource resource) throws CoreException {
if (resource.getType() == 2) {...

This lists all folders, including the grayed ones.
Is there a way to get only non-excluded folders ? Another command or a filter to apply ?

Thanks in advance for your support,
Best Regards,
Remi

PS: I don't know which forum is the best for this topic...
Re: IResource - how to ignore excluded folders [message #1425579 is a reply to message #1425374] Wed, 17 September 2014 14:04 Go to previous messageGo to next message
Eclipse UserFriend
Try checking IResource#isDerived()?
Re: IResource - how to ignore excluded folders [message #1425634 is a reply to message #1425579] Wed, 17 September 2014 15:46 Go to previous message
Remi ADAM is currently offline Remi ADAMFriend
Messages: 14
Registered: July 2014
Junior Member
It doesn't work.
The return is always FALSE, for excluded and non-excluded folders.
Previous Topic:PATH variables to environment variables in eclipse
Next Topic:How to reject popup menu contributed by other plugin?
Goto Forum:
  


Current Time: Thu Apr 25 07:54:54 GMT 2024

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

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

Back to the top