Пример #1
0
 /* (non-Javadoc)
  * @see org.eclipse.jdt.core.search.SearchRequestor#acceptSearchMatch(org.eclipse.jdt.core.search.SearchMatch)
  */
 public void acceptSearchMatch(SearchMatch match) throws CoreException {
   if (!match.isInsideDocComment())
     fMatch =
         new Match(
             match.getElement(), Match.UNIT_CHARACTER, match.getOffset(), match.getLength());
 }
Пример #2
0
 /* (non-Javadoc)
  * @see org.eclipse.jdt.core.search.SearchRequestor#acceptSearchMatch(org.eclipse.jdt.core.search.SearchMatch)
  */
 public void acceptSearchMatch(SearchMatch match) throws CoreException {
   if (match.getAccuracy() == SearchMatch.A_ACCURATE && !match.isInsideDocComment()) {
     fUsed = true;
   }
 }