Package org.eclipse.search.internal.ui.text

Examples of org.eclipse.search.internal.ui.text.FileMatch


    this(false, false);
  }

  public boolean acceptFile(IFile file) throws CoreException {
    if (fIsFileSearchOnly) {
      fResult.add(new FileMatch(file));
    }
    flushMatches();
    return true;
  }
View Full Code Here


    return fSearchInBinaries;
  }

  public boolean acceptPatternMatch(TextSearchMatchAccess matchRequestor)
      throws CoreException {
    fCachedMatches.add(new FileMatch(matchRequestor.getFile(),
        matchRequestor.getMatchOffset(), matchRequestor
            .getMatchLength(), getLineElement(matchRequestor
            .getMatchOffset(), matchRequestor)));
    return true;
  }
View Full Code Here

      TextSearchMatchAccess matchRequestor) {
    int lineNumber = 1;
    int lineStart = 0;
    if (!fCachedMatches.isEmpty()) {
      // match on same line as last?
      FileMatch last = (FileMatch) fCachedMatches.get(fCachedMatches
          .size() - 1);
      LineElement lineElement = last.getLineElement();
      if (lineElement.contains(offset)) {
        return lineElement;
      }
      // start with the offset and line information from the last match
      lineStart = lineElement.getOffset() + lineElement.getLength();
View Full Code Here

TOP

Related Classes of org.eclipse.search.internal.ui.text.FileMatch

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.