Package ag.ion.noa.search

Examples of ag.ion.noa.search.ResultMatchWalker


    if(editorPart == null) {
      IFile file = officeSearchMatch.getFile();
      try {
        editorPart = IDE.openEditor(NOASearchPlugin.getDefault().getWorkbench().
            getActiveWorkbenchWindow().getActivePage(), file);
        ResultMatchWalker resultMatchWalker = getNewMatchWalker(editorPart, officeSearchMatch);
        if(resultMatchWalker != null)
          resultMatchWalker.nextMatch();
      }
      catch (CoreException coreException) {
        ErrorDialog.openError(Display.getCurrent().getActiveShell(),
            Messages.OfficeSearchResultPage_dialog_title_internalError, coreException.getMessage(), coreException.getStatus());
      }
View Full Code Here


          ISearchableDocument searchableDocument = (ISearchableDocument)document;
          ag.ion.noa.search.ISearchResult searchResult = searchableDocument.getSearchService().findAll(searchDescriptor);
          if(!searchResult.isEmpty()) {
            if(matchWalkerMap == null)
              matchWalkerMap = new HashMap();               
            ResultMatchWalker resultMatchWalker = new ResultMatchWalker(document, searchResult);
            matchWalkerMap.put(editorPart, resultMatchWalker);           
            return resultMatchWalker;           
          }
        }
      }
View Full Code Here

    IEditorPart editorPart = getEditorPart(officeSearchMatch);
    if(editorPart == null) {
      showInEditor(officeSearchMatch);
    }
    else {
      ResultMatchWalker resultMatchWalker = getMatchWalker(editorPart);
      if(resultMatchWalker != null) {
        if(resultMatchWalker.hasNextMatch()) {
          resultMatchWalker.nextMatch();
          if(!NOASearchPlugin.getDefault().getWorkbench().
              getActiveWorkbenchWindow().getActivePage().getActiveEditor().equals(editorPart))
            NOASearchPlugin.getDefault().getWorkbench().
                getActiveWorkbenchWindow().getActivePage().activate(editorPart);
        }
View Full Code Here

    IEditorPart editorPart = getEditorPart(officeSearchMatch);
    if(editorPart == null) {
      showInEditor(officeSearchMatch);
    }
    else {
      ResultMatchWalker resultMatchWalker = getMatchWalker(editorPart);
      if(resultMatchWalker != null) {
        if(resultMatchWalker.hasPreviousMatch()) {
          resultMatchWalker.previousMatch();
          if(!NOASearchPlugin.getDefault().getWorkbench().
              getActiveWorkbenchWindow().getActivePage().getActiveEditor().equals(editorPart))
            NOASearchPlugin.getDefault().getWorkbench().
                getActiveWorkbenchWindow().getActivePage().activate(editorPart);
        }
View Full Code Here

    }
    IEditorPart editorPart = getEditorPart(officeSearchMatch);
    if(editorPart == null)
      nextMatchAction.setEnabled(true);
    else {
      ResultMatchWalker resultMatchWalker = getMatchWalker(editorPart);
      if(resultMatchWalker != null && resultMatchWalker.hasNextMatch())
        nextMatchAction.setEnabled(true);
      else if(currentSearchResult.getNextMatch(officeSearchMatch) != null)
        nextMatchAction.setEnabled(true);
      else
        nextMatchAction.setEnabled(false);       
    }
   
    ResultMatchWalker resultMatchWalker = getMatchWalker(editorPart);
    if(resultMatchWalker != null && resultMatchWalker.hasPreviousMatch())
      previousMatchAction.setEnabled(true);
    else if(currentSearchResult.getPreviousMatch(officeSearchMatch) != null)
      previousMatchAction.setEnabled(true);
    else
      previousMatchAction.setEnabled(false);   
View Full Code Here

TOP

Related Classes of ag.ion.noa.search.ResultMatchWalker

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.