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.
Procedure
To create an EMF data source:
- Open the Data Explorer view: Click .
- In the Report Explorer view, right-click a report design;
then click Open.
- In the Data Explorer view, right-click Data
Sources; then click New Data Source.
- Select EMF Data Source as the data
source type, type a name for the data source, and click Next.
- 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:
- 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.
- To specify a metamodel as the schema for your data,
click the second Add button, and load the metamodel.
- 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.
- Click Finish.
What to do next
You can now use this data source as the basis for an EMF
data set.