/** * Searches for the given Java element. * * @param workspace the workspace * @param element the Java element to be searched for * @param limitTo one of the following values: * <ul> * <li>{@link IJavaSearchConstants#DECLARATIONS}: search * for declarations only </li> * <li>{@link IJavaSearchConstants#REFERENCES}: search * for all references </li> * <li>{@link IJavaSearchConstants#ALL_OCCURRENCES}: search * for both declarations and all references </li> * <li>{@link IJavaSearchConstants#IMPLEMENTORS}: for types, will find all types * which directly implement/extend a given interface.</li> * </ul> * @param scope the search result has to be limited to the given scope * @param resultCollector a callback object to which each match is reported * @exception JavaModelException if the search failed. Reasons include: * <ul> * <li>the element doesn't exist</li> * <li>the classpath is incorrectly set</li> * </ul> * @deprecated Use {@link #search(SearchPattern, SearchParticipant[], IJavaSearchScope, SearchRequestor, IProgressMonitor)} instead. */ public void search(IWorkspace workspace, IJavaElement element, int limitTo, IJavaSearchScope scope, IJavaSearchResultCollector resultCollector) throws JavaModelException { search(workspace, createSearchPattern(element, limitTo), scope, resultCollector); }
/** * Searches for the given Java element. * * @param workspace the workspace * @param element the Java element to be searched for * @param limitTo one of the following values: * <ul> * <li>{@link IJavaSearchConstants#DECLARATIONS}: search * for declarations only </li> * <li>{@link IJavaSearchConstants#REFERENCES}: search * for all references </li> * <li>{@link IJavaSearchConstants#ALL_OCCURRENCES}: search * for both declarations and all references </li> * <li>{@link IJavaSearchConstants#IMPLEMENTORS}: for types, will find all types * which directly implement/extend a given interface.</li> * </ul> * @param scope the search result has to be limited to the given scope * @param resultCollector a callback object to which each match is reported * @exception JavaModelException if the search failed. Reasons include: * <ul> * <li>the element doesn't exist</li> * <li>the classpath is incorrectly set</li> * </ul> * @deprecated Use {@link #search(SearchPattern, SearchParticipant[], IJavaSearchScope, SearchRequestor, IProgressMonitor)} instead. */ public void search(IWorkspace workspace, IJavaElement element, int limitTo, IJavaSearchScope scope, IJavaSearchResultCollector resultCollector) throws JavaModelException { search(workspace, createSearchPattern(element, limitTo), scope, resultCollector); }
/** * Searches for the given Java element. * * @param workspace the workspace * @param element the Java element to be searched for * @param limitTo one of the following values: * <ul> * <li>{@link IJavaSearchConstants#DECLARATIONS}: search * for declarations only </li> * <li>{@link IJavaSearchConstants#REFERENCES}: search * for all references </li> * <li>{@link IJavaSearchConstants#ALL_OCCURRENCES}: search * for both declarations and all references </li> * <li>{@link IJavaSearchConstants#IMPLEMENTORS}: for types, will find all types * which directly implement/extend a given interface.</li> * </ul> * @param scope the search result has to be limited to the given scope * @param resultCollector a callback object to which each match is reported * @exception JavaModelException if the search failed. Reasons include: * <ul> * <li>the element doesn't exist</li> * <li>the classpath is incorrectly set</li> * </ul> * @deprecated Use {@link #search(SearchPattern, SearchParticipant[], IJavaSearchScope, SearchRequestor, IProgressMonitor)} instead. */ public void search(IWorkspace workspace, IJavaElement element, int limitTo, IJavaSearchScope scope, IJavaSearchResultCollector resultCollector) throws JavaModelException { search(workspace, createSearchPattern(element, limitTo), scope, resultCollector); }
/** * Searches for the given Java element. * * @param workspace the workspace * @param element the Java element to be searched for * @param limitTo one of the following values: * <ul> * <li>{@link IJavaSearchConstants#DECLARATIONS}: search * for declarations only </li> * <li>{@link IJavaSearchConstants#REFERENCES}: search * for all references </li> * <li>{@link IJavaSearchConstants#ALL_OCCURRENCES}: search * for both declarations and all references </li> * <li>{@link IJavaSearchConstants#IMPLEMENTORS}: for types, will find all types * which directly implement/extend a given interface.</li> * </ul> * @param scope the search result has to be limited to the given scope * @param resultCollector a callback object to which each match is reported * @exception JavaModelException if the search failed. Reasons include: * <ul> * <li>the element doesn't exist</li> * <li>the classpath is incorrectly set</li> * </ul> * @deprecated Use {@link #search(SearchPattern, SearchParticipant[], IJavaSearchScope, SearchRequestor, IProgressMonitor)} instead. */ public void search(IWorkspace workspace, IJavaElement element, int limitTo, IJavaSearchScope scope, IJavaSearchResultCollector resultCollector) throws JavaModelException { search(workspace, createSearchPattern(element, limitTo), scope, resultCollector); }
/** * Searches for the given Java element. * * @param workspace the workspace * @param element the Java element to be searched for * @param limitTo one of the following values: * <ul> * <li>{@link IJavaSearchConstants#DECLARATIONS}: search * for declarations only </li> * <li>{@link IJavaSearchConstants#REFERENCES}: search * for all references </li> * <li>{@link IJavaSearchConstants#ALL_OCCURRENCES}: search * for both declarations and all references </li> * <li>{@link IJavaSearchConstants#IMPLEMENTORS}: for types, will find all types * which directly implement/extend a given interface.</li> * </ul> * @param scope the search result has to be limited to the given scope * @param resultCollector a callback object to which each match is reported * @exception JavaModelException if the search failed. Reasons include: * <ul> * <li>the element doesn't exist</li> * <li>the classpath is incorrectly set</li> * </ul> * @deprecated Use {@link #search(SearchPattern, SearchParticipant[], IJavaSearchScope, SearchRequestor, IProgressMonitor)} instead. */ public void search(IWorkspace workspace, IJavaElement element, int limitTo, IJavaSearchScope scope, IJavaSearchResultCollector resultCollector) throws JavaModelException { search(workspace, createSearchPattern(element, limitTo), scope, resultCollector); }
/** * Searches for the given Java element. * * @param workspace the workspace * @param element the Java element to be searched for * @param limitTo one of the following values: * <ul> * <li>{@link IJavaSearchConstants#DECLARATIONS}: search * for declarations only </li> * <li>{@link IJavaSearchConstants#REFERENCES}: search * for all references </li> * <li>{@link IJavaSearchConstants#ALL_OCCURRENCES}: search * for both declarations and all references </li> * <li>{@link IJavaSearchConstants#IMPLEMENTORS}: for types, will find all types * which directly implement/extend a given interface.</li> * </ul> * @param scope the search result has to be limited to the given scope * @param resultCollector a callback object to which each match is reported * @exception JavaModelException if the search failed. Reasons include: * <ul> * <li>the element doesn't exist</li> * <li>the classpath is incorrectly set</li> * </ul> * @deprecated Use {@link #search(SearchPattern, SearchParticipant[], IJavaSearchScope, SearchRequestor, IProgressMonitor)} instead. */ public void search(IWorkspace workspace, IJavaElement element, int limitTo, IJavaSearchScope scope, IJavaSearchResultCollector resultCollector) throws JavaModelException { search(workspace, createSearchPattern(element, limitTo), scope, resultCollector); }