Package org.emftrace.ui.controls

Examples of org.emftrace.ui.controls.FilteredContentProviderResultItem


    List<FilteredContentProviderResultItem> result = new LinkedList<FilteredContentProviderResultItem>();
    for (ContentProviderResultItem item : resultList) {

      HashMap<String, List<String>> hits = calculateHits(word, item, n, minCorrelation);
      if (hits != null && hits.size() > 0) {
        result.add(new FilteredContentProviderResultItem(item, hits));
      }
    }
    return result;
  }
View Full Code Here


    List<String> nameHits = new ArrayList<String>();
    nameHits.add("foo");
    nameHits.add("fuu");

    hits.put("name", nameHits);
    item = new FilteredContentProviderResultItem(id, modelElement,  label, null, content,  project, hits);
   
    TestResultItemViewText text = new TestResultItemViewText(shell, SWT.NONE);
    assertFalse(text.getStyledText().getEditable()); //must be non editable by default
    text.setItemToDisplay(item);
    StyleRange[] styleRanges = text.getStyledText().getStyleRanges();
View Full Code Here

   
    HashMap<String, List<String> > hits = new HashMap<String, List<String> > ();
    List<String> descriptionHits = new ArrayList<String>();
    descriptionHits.add("foo");
    hits.put("description", descriptionHits);
    item = new FilteredContentProviderResultItem(id, modelElement,  label, null, content,  project, hits);
   
    TestResultItemViewText text = new TestResultItemViewText(shell, SWT.NONE);
    assertFalse(text.getStyledText().getEditable()); //must be non editable by default
    text.setItemToDisplay(item);
    StyleRange[] styleRanges = text.getStyledText().getStyleRanges();
View Full Code Here

        && !rootItemMap.containsKey(foundModelElementsTree
            .getSelection()[0])
        && itemMap
            .containsKey(foundModelElementsTree.getSelection()[0])) {

      FilteredContentProviderResultItem selectedCPItem = itemMap
          .get(foundModelElementsTree.getSelection()[0]);
      return selectedCPItem;
    }
    return null;
  }
View Full Code Here

                filteredList = new ArrayList<FilteredContentProviderResultItem>();
                for (ContentProviderResultItem resultItem : contentProvider
                    .getResult()) {
                  if (Thread.currentThread().isInterrupted()) break;
                  filteredList
                      .add(new FilteredContentProviderResultItem(
                          resultItem, null));
                }
              } else {
                if (Thread.currentThread().isInterrupted()) break;
                filteredList = NGramResultFilter.filter(
View Full Code Here

    HashMap<String, List<String> > hits = new HashMap<String, List<String> > ();
    List<String> nameHits = new ArrayList<String>();
    nameHits.add("foo");
    nameHits.add("fuu");
    hits.put("name", nameHits);
    item = new FilteredContentProviderResultItem(id, modelElement,  label, null, content,  project, hits);
  }
View Full Code Here

    hit.put(hitEntry.getKey(), matchedWordsList)
         
    }
 
    
    return new FilteredContentProviderResultItem(id, modelElement, label, image, content, project,hit );
  }
View Full Code Here

TOP

Related Classes of org.emftrace.ui.controls.FilteredContentProviderResultItem

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.