Package org.eclipse.dltk.core.search

Examples of org.eclipse.dltk.core.search.SearchMatch


    assertTrue(collector.results.size() >= offsets.size());
   
    for (Integer markerOffset : offsets) {
      boolean matchFound = false;
      for (Iterator<SearchMatch> iterator = collector.matches.iterator(); iterator.hasNext(); ) {
        SearchMatch match = iterator.next();
       
        ISourceModule matchModule = assertInstance(match.getElement(), IMember.class).getSourceModule();
        if(DeeSearchEngineTestUtils.getSourceModuleFQName(matchModule).equals("sampledefs_refs")) {
          if(match.getOffset() == markerOffset) {
            // This marker offset is accounted for
            matchFound = true;
            iterator.remove();
            break;
          }
View Full Code Here


    int level = SearchMatch.A_INACCURATE;
    if(accLevel == PatternLocator.ACCURATE_MATCH || accLevel == PatternLocator.ERASURE_MATCH) {
      level = SearchMatch.A_ACCURATE;
    }
   
    SearchMatch match = this.newDeclarationMatch(enclosingType, level, node.getOffset(), node.getLength());
    // TODO: create reference matches
    matches.add(match);
  }
View Full Code Here

      enclosingElement = createMethodHandle(method.getName());
    }
    if (accuracy > -1 && enclosingElement != null) { // skip if unable to
      // find method
      if (encloses(enclosingElement)) {
        SearchMatch match = null;
        if (DLTKCore.DEBUG) {
          System.out.println("TODO: AST Add constructor support."); //$NON-NLS-1$
        }
        match = this.patternLocator.newDeclarationMatch(method,
            enclosingElement, accuracy, this);
View Full Code Here

      throws CoreException {
    IModelElement enclosingElement = createHandle(method, parent);
    if (accuracy > -1 && enclosingElement != null) { // skip if unable to
      // find method
      if (encloses(enclosingElement)) {
        SearchMatch match = null;
        if (DLTKCore.DEBUG) {
          System.out.println("TODO: AST Add constructor support."); //$NON-NLS-1$
        }
        match = this.patternLocator.newDeclarationMatch(method,
            enclosingElement, accuracy, this);
View Full Code Here

TOP

Related Classes of org.eclipse.dltk.core.search.SearchMatch

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.