Examples of search()


Examples of org.eclipse.jface.text.IDocument.search()

        ITextEditor textEditor = (ITextEditor) editorPart;
        IDocumentProvider documentProvider = textEditor.getDocumentProvider();
        IDocument document = documentProvider.getDocument(textEditor.getEditorInput());
        // it's deprecated but the sse does not provide a
        // FindReplaceDocumentAdapter
        int offset = document.search(0, string, true, true, false);
        if (offset >= 0) {
          textEditor.selectAndReveal(offset, string.length());
        }
        // if (document instanceof IAdaptable) {
        // IAdaptable adaptable = (IAdaptable) document;

Examples of org.eclipse.m2e.core.internal.index.IIndex.search()

        //ISearchEngine searchEngine  = M2EUIPluginActivator.getDefault().getSearchEngine(null)
        //searchEngine.findVersions(groupId, artifactId, searchExpression, packaging)
        //
        //doesn't yield the expected results (the latest versions are not returned), so we rely on a fuzzier search
        //and refine the results.
        Map<String, IndexedArtifact> values = index.search(a, IIndex.SEARCH_PLUGIN);
        if(!values.isEmpty()) {
          SortedSet<ComparableVersion> versions = new TreeSet<ComparableVersion>();
          ComparableVersion referenceComparableVersion = referenceVersion == null ? null : new ComparableVersion(
              referenceVersion);

Examples of org.eclipse.search.core.text.TextSearchEngine.search()

  private TestCaseFinderResult searchInFiles(IFile[] loadedFiles,
      String testCaseName, String testName) {
    TextSearchEngine engine = TextSearchEngine.create();
    TestCaseSearchRequestor requestor = new TestCaseSearchRequestor();
    engine.search(loadedFiles, requestor, createPattern(testCaseName, testName),
        new NullProgressMonitor());
    return requestor.getResult();
  }

  private Pattern createPattern(String testCaseName, String testName) {

Examples of org.eclipse.ui.help.AbstractHelpUI.search()

   * @see org.eclipse.ui.help.IWorkbenchHelpSystem#search(java.lang.String)
   */
  public void search(String expression) {
    AbstractHelpUI helpUI = getHelpUI();
    if (helpUI != null) {
      helpUI.search(expression);
    }
  }
 
  /* (non-Javadoc)
   * @see org.eclipse.ui.help.IWorkbenchHelpSystem#resolve(java.lang.String, boolean)

Examples of org.eclipse.ui.help.IWorkbenchHelpSystem.search()

        String theFullURL = urldest + keyword;
       
        IExtensionRegistry extReg = Platform.getExtensionRegistry();
        if(extReg.getExtensions("com.adobe.coldfusion_help_7").length > 0){
          IWorkbenchHelpSystem helpsys = Workbench.getInstance().getHelpSystem();
          helpsys.search(keyword);
        }
        else{
            IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
            try {
               BrowserView browser = (BrowserView)page.showView(BrowserView.ID_BROWSER);

Examples of org.elasticsearch.action.admin.indices.stats.IndicesStatsRequest.search()

        } else {
            indicesStatsRequest.clear();
            indicesStatsRequest.docs(metrics.contains("docs"));
            indicesStatsRequest.store(metrics.contains("store"));
            indicesStatsRequest.indexing(metrics.contains("indexing"));
            indicesStatsRequest.search(metrics.contains("search"));
            indicesStatsRequest.get(metrics.contains("get"));
            indicesStatsRequest.merge(metrics.contains("merge"));
            indicesStatsRequest.refresh(metrics.contains("refresh"));
            indicesStatsRequest.flush(metrics.contains("flush"));
            indicesStatsRequest.warmer(metrics.contains("warmer"));

Examples of org.elasticsearch.client.Client.search()

        srb.addField("_id");
        srb.addField("timestamp");
        srb.addField("_source");

        final SearchRequest request = srb.request();
        final SearchResponse response = client.search(request).actionGet();

        if (! commandLineOptions.isFix()) {
            LOG.warn("Not executing update because '-F' command line flag not given!");
        }

Examples of org.epic.perleditor.views.PerlDocView.search()

        IWorkbenchPage activePage = PerlEditorPlugin.getWorkbenchWindow().getActivePage();

        try
        {
            view = (PerlDocView) activePage.showView("org.epic.perleditor.views.PerlDocView");
            view.search(selection, editor);
        }
        catch (PartInitException e)
        {
            PerlEditorPlugin.getDefault().getLog().log(
                StatusFactory.createError(PerlEditorPlugin.getPluginId(), e.getMessage(), e));

Examples of org.exist.indexing.lucene.LuceneIndexWorker.search()

            // Get the lucene worker
            LuceneIndexWorker index = (LuceneIndexWorker) context.getBroker()
                    .getIndexController().getWorkerByIndexId(LuceneIndex.ID);

            // Perform search
            report = index.search(context, toBeMatchedURIs, query);


        } catch (XPathException ex) {
            // Log and rethrow
            logger.error(ex);

Examples of org.exist.indexing.spatial.AbstractGMLJDBCIndexWorker.search()

                else if (isCalledAs("contains"))
                    spatialOp = SpatialOperator.CONTAINS;
                else if (isCalledAs("overlaps"))
                    spatialOp = SpatialOperator.OVERLAPS;
                //Search the EPSG:4326 in the index
                result = indexWorker.search(context.getBroker(), nodes.toNodeSet(), EPSG4326_geometry, spatialOp);
                hasUsedIndex = true;
            } catch (SpatialIndexException e) {
                logger.error(e.getMessage(), e);
                throw new XPathException(e);
            }
TOP
Copyright © 2018 www.massapi.com. 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.