Examples of highlight()


Examples of com.dci.intellij.dbn.editor.data.ui.table.cell.DatasetTableCellEditor.highlight()

            if (isEditing()) {
                DatasetEditorTable table = getEditorTable();
                TableCellEditor tableCellEditor = table.getCellEditor();
                if (tableCellEditor instanceof DatasetTableCellEditor) {
                    DatasetTableCellEditor cellEditor = (DatasetTableCellEditor) tableCellEditor;
                    cellEditor.highlight(DatasetTableCellEditor.HIGHLIGHT_TYPE_ERROR);
                }
            }
            error.addChangeListener(this);
            if (showPopup) showErrorPopup();
            return true;
View Full Code Here

Examples of com.gentics.cr.lucene.search.highlight.AdvancedContentHighlighter.highlight()

          String ret = null;
          if (highligther instanceof AdvancedContentHighlighter) {
            AdvancedContentHighlighter advancedHighlighter = (AdvancedContentHighlighter) highligther;
            int documentId = Integer.parseInt(doc.get("id"));

            ret = advancedHighlighter.highlight(parsedQuery, reader, documentId, att);

          } else {
            ret = highligther.highlight((String) crBean.get(att), parsedQuery);
          }
          if (ret != null && !"".equals(ret)) {
View Full Code Here

Examples of com.gentics.cr.lucene.search.highlight.AdvancedContentHighlighter.highlight()

    AdvancedContentHighlighter advancedHighlighter = new WhitespaceVectorBolder(hConfig);
    int documentId = 0;
    Query pQuery = parser.parse("word1");
    IndexReader reader = lucene.getReader();
    Query rQuery = pQuery.rewrite(reader);
    String highlighted = advancedHighlighter.highlight(rQuery, reader, documentId, "content");
   }
 
  public void testBoostingWithCRRecencyBoostingQueryParser() throws ParseException, CorruptIndexException, IOException {
    Query orginalQuery = parser.parse("word1");
View Full Code Here

Examples of com.gentics.cr.lucene.search.highlight.ContentHighlighter.highlight()

            int documentId = Integer.parseInt(doc.get("id"));

            ret = advancedHighlighter.highlight(parsedQuery, reader, documentId, att);

          } else {
            ret = highligther.highlight((String) crBean.get(att), parsedQuery);
          }
          if (ret != null && !"".equals(ret)) {
            crBean.set(att, ret);
          }
        }
View Full Code Here

Examples of com.gentics.cr.lucene.search.highlight.ContentHighlighter.highlight()

  public void testPhraseBolder2() throws Exception {
    System.out.println("PHRASE2");
    ContentHighlighter h = new PhraseBolder(new GenericConfiguration());
    CRResolvableBean crBean = new CRResolvableBean();
    crBean.set("binarycontent", "this is a test (AHSt)");
    String ret = h.highlight((String) crBean.get("binarycontent"), query);
    System.out.println(ret);

    assertTrue(ret != null && !"".equals(ret));
  }
View Full Code Here

Examples of com.gentics.cr.lucene.search.highlight.PhraseBolder.highlight()

  public void testPhraseBolder2() throws Exception {
    System.out.println("PHRASE2");
    ContentHighlighter h = new PhraseBolder(new GenericConfiguration());
    CRResolvableBean crBean = new CRResolvableBean();
    crBean.set("binarycontent", "this is a test (AHSt)");
    String ret = h.highlight((String) crBean.get("binarycontent"), query);
    System.out.println(ret);

    assertTrue(ret != null && !"".equals(ret));
  }
View Full Code Here

Examples of com.gentics.cr.lucene.search.highlight.VectorBolder.highlight()

  }

  public void testVectorBolder() throws Exception {
    System.out.println("VECTOR");
    VectorBolder h = new VectorBolder(new GenericConfiguration());
    String ret = h.highlight(query, searcher.getIndexReader(), 0, "binarycontent");
    System.out.println(ret);

    assertTrue(ret != null && !"".equals(ret));
  }
View Full Code Here

Examples of com.gentics.cr.lucene.search.highlight.WhitespaceVectorBolder.highlight()

    AdvancedContentHighlighter advancedHighlighter = new WhitespaceVectorBolder(hConfig);
    int documentId = 0;
    Query pQuery = parser.parse("word1");
    IndexReader reader = lucene.getReader();
    Query rQuery = pQuery.rewrite(reader);
    String highlighted = advancedHighlighter.highlight(rQuery, reader, documentId, "content");
   }
 
  public void testBoostingWithCRRecencyBoostingQueryParser() throws ParseException, CorruptIndexException, IOException {
    Query orginalQuery = parser.parse("word1");
View Full Code Here

Examples of com.gentics.cr.lucene.search.highlight.WhitespaceVectorBolder.highlight()

  }

  public void testWhitespaceVectorBolder() throws Exception {
    System.out.println("WHITESPACEVECTOR");
    WhitespaceVectorBolder h = new WhitespaceVectorBolder(new GenericConfiguration());
    String ret = h.highlight(query, searcher.getIndexReader(), 0, "binarycontent");
    System.out.println(ret);

    assertTrue(ret != null && !"".equals(ret));
  }
View Full Code Here

Examples of com.uwyn.jhighlight.renderer.JavaXhtmlRenderer.highlight()

            BufferedReader br = null;
            try {
                br = new BufferedReader(new FileReader(f));
                String sourceIn = IOHelper.readEntirely(br);
                Renderer r = new JavaXhtmlRenderer();
                String sourceDecorated = r.highlight(f.getName(), sourceIn, "UTF-8", false);
                return new StringReader(sourceDecorated);
            } catch (IOException ioe) {
                LOGGER.debug("cannot decorate java file " + f);
                return new FileReader(f);
            } finally {
View Full Code Here
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.