Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » How get list of files by a pattern
How get list of files by a pattern [message #1749262] Sun, 04 December 2016 21:01 Go to next message
David Simacek is currently offline David SimacekFriend
Messages: 2
Registered: January 2016
Junior Member
I would like to know what is a efficient way to get a list of files within a project/folder which match a given pattern (e.g. *_.c).

Thanks
Re: How get list of files by a pattern [message #1766871 is a reply to message #1749262] Wed, 28 June 2017 12:00 Go to previous message
saravanakumar Mohanasundaram is currently offline saravanakumar MohanasundaramFriend
Messages: 17
Registered: February 2017
Junior Member
Hello David,
This can be done using two methods:
1. One is using recursive approach.
2. Another one is add IResourceVisitor to IResource. It will visit all the files in the workspace and add your logic to get the files.

Refer this link: http://www.programcreek.com/java-api-examples/index.php?api=org.eclipse.core.resources.IResourceVisitor

Regards,
saravanakumar M

[Updated on: Wed, 28 June 2017 12:03]

Report message to a moderator

Previous Topic:How to programmatically access to workspace preferences
Next Topic:How to populate custom list data (two levels) using CheckedTreeSelectionDialog
Goto Forum:
  


Current Time: Wed Nov 14 11:09:35 GMT 2018

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

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

Back to the top