IResource[] roots= { fType.getJavaProject().getProject() }; // limit to the current project
String[] fileNamePatterns= { "*.japid" }; //$NON-NLS-1$ // all files with file suffix 'special'
FileTextSearchScope scope= FileTextSearchScope.newSearchScope(roots , fileNamePatterns, false);
Pattern pattern= Pattern.compile(fType.getElementName()); // only find the simple name of the type
TextSearchRequestor collector= new TextSearchRequestor() {
@Override
public boolean acceptPatternMatch(TextSearchMatchAccess matchAccess) throws CoreException {
IFile file= matchAccess.getFile();
TextFileChange change= (TextFileChange) changes.get(file);
if (change == null) {