Different EMF DataSoruce [message #872484] |
Wed, 16 May 2012 07:54 |
Dennis Melzer Messages: 244 Registered: July 2009 |
Senior Member |
|
|
Hello,
i want to print a SWT Table with a EMF Model. The EMF Model is stored in a xmi file. At runtime the user can choose the storage location for the xmi file.
1. Is a data source the stored xmi file or the ecore file?
If data source the xmi file(s):
2. How can i add this (different) data source in birt?
Is there a Tutorial for EMF and Birt?
Thanks
[Updated on: Wed, 16 May 2012 08:06] Report message to a moderator
|
|
|
|
|
Re: Different EMF DataSoruce [message #872648 is a reply to message #872520] |
Wed, 16 May 2012 14:20 |
Dennis Melzer Messages: 244 Registered: July 2009 |
Senior Member |
|
|
I tried out: http://timezra.blogspot.de/2008/04/oda-ecore-getting-started-guide.html, but i doesn't understand two things:
1. Do I need a ecore File or a instance of a ecore File?
2. If I need a instance of a ecore file, how can i switch the file at the runtime for a rcp application?
Defaultname.ecore has 1 class Peron {name}
<?xml version="1.0" encoding="UTF-8"?>
<ecore:EPackage xmi:version="2.0"
xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="defaultname"
nsURI="http://defaultname/1.0" nsPrefix="defaultname">
<eClassifiers xsi:type="ecore:EClass" name="Person">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
<eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="wildcards" value=""/>
<details key="name" value="hh:mm"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="date" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EDate">
<eAnnotations source="FormattedControl" references="#//Person/date/%FormattedControl%">
<details key="format" value="dd.mm.yyyy"/>
</eAnnotations>
</eStructuralFeatures>
</eClassifiers>
</ecore:EPackage>
Instance Person.xmi
<?xml version="1.0" encoding="ASCII"?>
<defaultname:Person xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:defaultname="http://defaultname/1.0" xsi:schemaLocation="http://defaultname/1.0 DefaultName.ecore" name="test"/>
3. Did the Query-Wizard change?
[Updated on: Wed, 16 May 2012 14:28] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04812 seconds