Java Code Examples for org.eclipse.jdt.core.search.SearchEngine#searchDeclarationsOfSentMessages()
The following examples show how to use
org.eclipse.jdt.core.search.SearchEngine#searchDeclarationsOfSentMessages() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ReferenceFinderUtil.java From eclipse.jdt.ls with Eclipse Public License 2.0 | 4 votes |
private static List<SearchMatch> getMethodReferencesIn(IJavaElement element, WorkingCopyOwner owner, IProgressMonitor pm) throws JavaModelException { CollectingSearchRequestor requestor= new CollectingSearchRequestor(); SearchEngine engine= owner != null ? new SearchEngine(owner) : new SearchEngine(); engine.searchDeclarationsOfSentMessages(element, requestor, pm); return requestor.getResults(); }
Example 2
Source File: ReferenceFinderUtil.java From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 | 4 votes |
private static List<SearchMatch> getMethodReferencesIn(IJavaElement element, WorkingCopyOwner owner, IProgressMonitor pm) throws JavaModelException { CollectingSearchRequestor requestor= new CollectingSearchRequestor(); SearchEngine engine= owner != null ? new SearchEngine(owner) : new SearchEngine(); engine.searchDeclarationsOfSentMessages(element, requestor, pm); return requestor.getResults(); }