Skip to main content



      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 16:01 Go to next message
Eclipse UserFriend
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 08:00 Go to previous message
Eclipse UserFriend
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 08:03] by 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: Fri Jul 04 15:38:31 EDT 2025

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

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

Back to the top