@Override public void modifyText(ModifyEvent event){
  String searchText=textSearch.getText();
  if (!searchText.isEmpty()) {
    filterItems(searchText);
  }
 else {
    viewer.removeFilter(searchFilter);
    viewer.refresh();
    doAfterRemoveSearchFilter();
  }
}

@ Override public void modifyText ( ModifyEvent event ) { String searchText = textSearch . getText ( ) ; if ( ! searchText . isEmpty ( ) ) { filterItems ( searchText ) ; } else { viewer . removeFilter ( searchFilter ) ; viewer . refresh ( ) ; doAfterRemoveSearchFilter ( ) ; } }
adds / removes filter when text is modified depending on event .
