Creating EMF data sources

An Eclipse Modeling Framework (EMF) data source consists of one or more instance models or metamodels, or a combination of them. To create a data source, you configure connections to these instance models and metamodels.

Before you begin

Data sources are associated with report designs, which are files that have RPTDESIGN as a file name extension. You must have a report design before you start this task. To create a new report design, see the related task named "Creating report designs for EMF and UML model information reports."

The EMF data source allows report designs to access data from EMF models.


To create an EMF data source:

  1. Open the Data Explorer view: Click Window > Show View > Other > Report Design > Data Explorer.
  2. In the Report Explorer view, right-click a report design; then click Open.
  3. In the Data Explorer view, right-click Data Sources; then click New Data Source.
  4. Select EMF Data Source as the data source type, type a name for the data source, and click Next.
  5. Specify at least one source to use. You can specify one or more model instances, one or more metamodels, or a combination of both. To specify sources, complete the following steps:
    1. To include an EMF instance model as the source for report data, click the first Add button, and load the URI for the instance model.
    2. To specify a metamodel as the schema for your data, click the second Add button, and load the metamodel.
  6. To verify that you entered the source information correctly and that the sources are accessible, click Test Connection and, after the test succeeds, click OK.
  7. Click Finish.

What to do next

You can now use this data source as the basis for an EMF data set.