Testing the CSV ODA user interface plug-in
On PDE Manifest Editor, in Overview, the Testing section contains links to launch a plug-in as a separate Eclipse application in either Run or Debug mode.
How to launch the CSV ODA user interface plug-in
1 From the Eclipse SDK menu, choose Run—Run Configurations. In Run Configurations, right-click Eclipse Application. Choose New.
2 Create a configuration to launch an Eclipse application by performing the following tasks:
1 In Name, type:
CSV ODA Test
2 In Main, in Location, type:
C:\Test
Figure 20‑10 Creating a configuration to launch an Eclipse application
3 Choose the Arguments tab and ensure that the following arguments are entered:

Program arguments:
-os ${target.os} -ws ${target.ws} -arch ${target.arch}
-nl ${target.nl} -consoleLog

VM arguments:
-Dosgi.requiredJavaVersion=1.6 -Xms40m -Xmx512m
-XX:MaxPermSize=256M
4 Choose the Plug-ins tab to select the list of plug-ins that you want to launch with the run configuration.
5 In Launch with, choose:
plug-ins selected below only
from the drop-down list.
In Plug-ins, check the following plug-ins, as shown in
Figure 20‑11.
org.eclipse.birt.data.oda.csv
org.eclipse.birt.data.oda.csv.ui
Figure 20‑11 Selecting required plug-ins for launch configuration
The plug-ins selected below only option supports configuring an environment that uses a subset of the plug-ins from the workspace and the target platform. The target platform consists of all the plug-ins that are explicitly checked on the Window > Preferences... > Plug-in Development > Target Platform preference page.
When using the plug-ins selected below only option you must ensure that the list of selected plug-ins is up to date when you add or remove a plug‑in from the workspace. There are several buttons available to help you select plug-ins, including an Add Required Plug-ins button. The Add Required Plug-ins button should be used often to ensure the selected subset of plug-ins is complete.
6 Choose Run to launch the run-time workbench.
7 In the run-time workbench, choose the Report Design perspective.
8 In Report Design, create a new report project and create a new blank report.
How to create a report design
1 In Report Design, choose File➛New➛Project.
2 Expand Business Intelligence and Reporting Tools and choose Report Project. Choose Next.
3 In Report Project, perform the following tasks:
1 In Project name, type:
testCSVODA
2 Select Use default location. Choose Finish. In Navigator, testCSVODA appears.
4 In Navigator, right-click testCSVODA and choose File➛New➛Report. New Report appears.
5 In New Report, perform the following tasks:
1 In Enter or select the parent folder, select testCSVODA.
2 In file name, type:
new_report.rptdesign
Choose Next.
3 In Report Templates, select Blank Report. Choose Finish. In Navigator, new_report_1.rptdesign appears in the testCSVODA project folder and new_report.rptdesign appears in Report Design, as shown in
Figure 20‑12.
Figure 20‑12 new_report.rptdesign in the report design environment
How to specify a data source
1 In Report Design, choose Data
➛New Data Source. On New Data Source, choose CSV Data Source, as shown in
Figure 20‑13. Choose Next.
Figure 20‑13 Choosing CSV Data Source
2 In New CSV File ODA Data Source Profile, enter the path and file name of the directory that contains a CSV data source file, as shown in
Figure 20‑14. Note that the Test Connection function has not been extended for this dialog and will not work to check for the file. Choose Finish.
Figure 20‑14 Specifying path to the CSV ODA data source file directory
How to select a new data set
1 In Report Design, choose Data
➛New Data Set. New Data Set appears, as shown in
Figure 20‑15. Choose Next. Query appears.
Figure 20‑15 New Data Set for the CSV ODA data source
2 In Query, select all the columns, as shown in
Figure 20‑16. Choose Finish.
Figure 20‑16 Selecting columns
Figure 20‑17 Edit Data Set
3 Choose Preview Results. Preview Results appears, as shown in
Figure 20‑18. View the other wizard pages. Then, choose OK.
Figure 20‑18 Data preview
4 In Data Explorer, expand Data Sources and Data Sets. Data Explorer appears as shown in
Figure 20‑19.
Figure 20‑19 Data Set in Data Explorer
How to run a report design using CSV ODA user interface and driver extensions
1 To build the report, drag Data Set from Data Explorer to the layout editor and select all columns. Layout appears, as shown in
Figure 20‑20.
Figure 20‑20 Report design in the layout editor
2 To run the report design, choose Preview. new_report_1.rptdesign runs, displaying the data set from the CSV data source, as shown in
Figure 20‑21.
Figure 20‑21 Preview of the data set from the CSV ODA data source