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).

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: 18
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:

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: Sat Jan 28 11:17:30 GMT 2023

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

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

Back to the top