Esempio n. 1
0
 /**
  * ************************************************************************* Clear the highlight
  * of the given ranges ************************************************************************
  */
 public void clearMatches() {
   m_search.clear();
   getGrid().setRedraw(false);
   getGrid().deselectAll();
   for (GridItem item : getGrid().getItems()) {
     item.setData("DATA_SEARCH_MATCH", null);
   }
   getGrid().setRedraw(true);
 }
Esempio n. 2
0
 /**
  * ************************************************************************* Highlight the given
  * ranges ************************************************************************
  */
 private void showMatches(SearchMatch[] matches) {
   getGrid().setRedraw(false);
   for (SearchMatch match : matches) {
     GridItem item = getGrid().getItem(match.lineNo - 1);
     item.setData("DATA_SEARCH_MATCH", match);
   }
   getGrid().deselectAll();
   getGrid().setRedraw(true);
   getGrid().select(matches[0].lineNo - 1);
   showLine(matches[0].lineNo, false);
 }