222223224225226227228229230231232
for (ViewerFilter filter : tableViewer.getFilters()) { tableViewer.removeFilter(filter); } String regex = (searchtext.getText()); if (regex != null && !regex.equals("")) { tableViewer.addFilter(new RulesFilter(regex)); } } });