If you want your users to select files inside the eclipse workspace with a specific extension, you can look at the org.eclipse.ui.dialogs.ElementTreeSelectionDialog class (org.eclipse.ui. Dialogs) as a launch.
Then, to have an example of how to do this filter extension, you can look at the class org.eclipse.jdt.internal.ui.viewsupport.FilteredElementTreeSelectionDialog (org.eclipse.jdt. Ui plugin) to see how they do it, and then override the material.
This should give you a higher level of action than collecting files inside projects manually and redefining dialogs.
Denis R.
source share