Community
Participate
Working Groups
currently, it only has a public boolean encloses(IResource element); method, which makes it somewhat difficult to use. if i add only 1 file to the scope and pass the scope to somebody else they have no efficient way to retrieve that information so, in order to do sth in that scope, they have to iterate thru _all_ files and call the 'encloses' method. there should be a way to get the information that was used to create the scope - now, it's a kind of black hole'ish - you put stuff and can get it out only with great difficulty.
the description and title were bogus it should say: public boolean encloses(IJavaElement element);
We cannot augment the search scope API without breaking our 1.0 customers who could have implemented it.
Jerome - please check spec'ed comment, and close. We cannot add any new API.
Yes, spec says that clients may choose to implement this interface, so it is too late to add new methods to IJavaSearchScope. Closing.