Package it.unibz.instasearch.indexing

Examples of it.unibz.instasearch.indexing.SearchResultDoc


  }
 
  public StyledString getStyledText(Object element) {
       
    if(element instanceof SearchResultDoc) {
      SearchResultDoc doc = (SearchResultDoc) element;
     
      return decorateFile(doc);
     
    } else if(element instanceof MatchLine) {
      MatchLine lineMatches = (MatchLine) element;
View Full Code Here


  }
 
  public Image getImage(Object element) {
    try {
      if(element instanceof SearchResultDoc) {
        SearchResultDoc doc = (SearchResultDoc) element;
       
        Image image = null;
       
        if( !doc.isInJar() )
          image = labelProvider.getImage(doc.getFile());
       
        if( image == null )
          image = getFileImage(doc);
       
        if( image == null )
View Full Code Here

 
  public Object[] getChildren(Object parent)
  {
    if( parent instanceof SearchResultDoc ) {
     
      SearchResultDoc doc = (SearchResultDoc) parent;
     
      if( cachedResultDoc != null && doc.equals(cachedResultDoc) )
        return cachedChildren; // cache results
     
      List<MatchLine> matches = null;
      Object[] children = null;
     
View Full Code Here

      {
        ViewerCell cell = resultViewer.getCell(new Point(e.x, e.y));
       
        if( cell != null && cell.getElement() instanceof SearchResultDoc )
        {
          SearchResultDoc doc = (SearchResultDoc) cell.getElement();
          resultViewer.getTree().setToolTipText(doc.getFilePath());
        }
        else
        {
          resultViewer.getTree().setToolTipText("");
        }
View Full Code Here

 
  private void openSelection() throws Exception {
    IStructuredSelection selection = (IStructuredSelection)resultViewer.getSelection();
    Object obj = selection.getFirstElement();
   
    SearchResultDoc doc = null;
    MatchLine selectedLineMatches = null;
   
    if(obj instanceof SearchResultDoc) {
      doc = (SearchResultDoc) obj;
    } else if(obj instanceof MatchLine) {
View Full Code Here

TOP

Related Classes of it.unibz.instasearch.indexing.SearchResultDoc

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.