package br.com.germantech.ecf.telas.filtros; import org.eclipse.jface.viewers.Viewer; import org.eclipse.jface.viewers.ViewerFilter; import br.com.germantech.ecf.aplicacao.helpers.ReflectionHelper; public class PropertyFiscalFilter extends ViewerFilter{ private String searchString ; private String property; private void setSearchText(String s) { this.searchString = ".*" + s + ".*"; } public void setProperty(String property) { this.property = property; } @Override public boolean select(Viewer viewer, Object parentElement, Object element) { return ReflectionHelper.compare(element, this.searchString, this.atributo); } }