MasterEx opened a new pull request #2169:
URL: https://github.com/apache/netbeans/pull/2169


   Jira: https://issues.apache.org/jira/browse/NETBEANS-4415
   
   This pull request adds the functionality to export database dataview results 
to a file.
   Support for .csv, .tsv (tab separated), .xls and .xlsx is included.
   
   Below are some relevant screenshots:
   
   
![menu_item](https://user-images.githubusercontent.com/149539/83982454-6e75ea80-a92f-11ea-9ad3-83396d763ddf.png)
   The menu item "Export Table Data" has been introduced. This will open a file 
chooser window.
   
   
![filechooser_window](https://user-images.githubusercontent.com/149539/83982547-18557700-a930-11ea-8d4f-f6642883609a.png)
   
   The file chooser filters the files by the extension:
   
![available_file_types](https://user-images.githubusercontent.com/149539/83982568-3cb15380-a930-11ea-99dc-ae411c0e0113.png)
   
   The changes have been made in a way that is relevantly straightforward to 
introduce a new file format.
   
   For the creation of the csv and tsv files the Apache csv commons library was 
introduced. For the xls and xlsx files the Apache POI and relevant dependencies 
were introduced.
   
   Tests have been introduced that compare the generated files to provided 
"golden" files. For the csv and tsv files a file comparison is made. For xls 
and xlsx only the contents of the workbook are compared because metadata such 
as the author will cause an exact file comparison to fail.
   
   In case you consider that it is beneficial to include this feature let me 
know if you have any question regarding the implementation or if you have to 
propose any improvement. Thanks.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to