DO NOT EDIT OR ANSWER THIS ISSUE. SEE THE ORIGINAL ISSUE INSTEAD:
ORIGINAL REPORTER: alex
A new project should be created that will enable the support of export and print of a TableViewer inside an RCP application.
As a start the module should be able to export an the contents of an arbitrary TableViewer to a comma separated file (Please use a library to creat the files such as opencsv).
We should start with the implementation first and think then about how to trigger that in the ui. A context-menu for the viewers control might be a possibility, but what if there is already one (append to this?) and what if the context menu is overwritten later.
Maybe a MouseListener for each TableViewer might be good and a global action that switches a global state that all listeners check. If the state is active the first listener that gets triggered does the export and re-sets the state. But the implemenation of the export should come first.
As start the module could provide a class that could be instantiated for a TableViewer and which would automatically register a context menu