'Get visible rows from org.eclipse.jface.viewers.TableViewer

I'm using org.eclipse.jface.viewers.TableViewer in one of my projects. I need to export the visible rows of my table in a CSV file. Saying visible, I mean the rows a user can see after the table has been filtered. But I can't understand how I can get the rows, I didn't find any appropriate method. Does anybody know?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source