final TableViewer viewer = getViewer();
final int elementLimit = getElementLimit();
final boolean tableLimited = elementLimit != -1;
for (int i = 0; i < updatedElements.length; i++) {
if (fResult.getMatchCount(updatedElements[i]) > 0) {
if (viewer.testFindItem(updatedElements[i]) != null) {
viewer.update(updatedElements[i], null);
} else {
if (!tableLimited || viewer.getTable().getItemCount() < elementLimit) {
viewer.add(updatedElements[i]);
}