|
Re: ODA Ecore Getting Started [message #53962 is a reply to message #53941] |
Thu, 19 March 2009 11:43 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: an.ma.web.de
Geoffry Roberts wrote:
> Could there be a problem with the most recent nightly build?
>
> dtp-incubator-sdk-1.7.0M7-200903180500.zip
>
> I discovered ODA Ecore this morning rejoiced a bit because I think I can
> really use it. [...]
>
> The features and plugins do not appear in the About/Details lists. In
> the BIRT report designer the Data Explorer/Data Sources/New Data source
> shows nothing about any kind of ODA.
> It seems that in the past people were getting farther along before
> running into trouble hence the questions above.
Are you installing the plugins in Eclipse 3.4.2? In a recent post [1],
Brian Fitzpatrick wrote that you should use Eclipse 3.5M5 for DTP 1.7.
Older versions won't work.
[1] http://dev.eclipse.org/newslists/news.eclipse.dtp/msg01412.h tml
--
Andreas
|
|
|
|
Re: ODA Ecore Getting Started [message #53972 is a reply to message #53969] |
Fri, 20 March 2009 10:46 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: an.ma.web.de
Geoffry Roberts wrote:
> Yes, I am using 3.4.2. I can't use anything newer. Seems that I should
> try using a somewhat earlier build if possible. Would that be 1.6.x?
Actually, you are looking for a DTP Incubator 1.6.x build. I don't know,
where to get one. However, since the Ecore driver comprises only the plugins
org.eclipse.datatools.enablement.oda.ecore
org.eclipse.datatools.enablement.oda.ecore.ui
it's easy to build them yourself. You can check out the sources via CVS
from :pserver:anonymous@dev.eclipse.org:/cvsroot/datatools from the
module org.eclipse.datatools.incubator/plugins.
The code in HEAD has already been updated to the enhanced interfaces of
DTP 1.7 and won't compile with DTP 1.6. Therefore, be sure to switch to
version v200901210800.
Shameless plug: Alternatively, you could give my driver [1] a try.
[1] http://dev.eclipse.org/newslists/news.eclipse.dtp/msg01441.h tml
--
Andreas
|
|
|
|
|
Re: ODA Ecore Getting Started [message #53980 is a reply to message #53975] |
Mon, 23 March 2009 12:13 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: an.ma.web.de
Geoffry Roberts wrote:
> I created a data source and gave it the URI to one of my *.ecore files,
> and left The Packages: box alone showing
> http://www.eclipse.org.emf/2002/Ecore.
The Ecore file contains the model of your model (metamodel). Therefore,
you will see types such as EAttribute, EClass, EClassifier, or EReference.
> I notice that in the packages, I
> see nothing familiar (i.e. from my model). Is this as it should be?
I assume, you have already generated the model and editor code from your
Ecore file and its corresponding Genmodel. You can use that editor to
create an instance of your model. The data source for such a file will
provide you with "familiar" business objects.
> I then tried to create a data set. After trying different contexts, I
> once again don't see anything familiar, nor does the query box
> validation approve of anything I enter. Is this right?
The context type is the type of the variable "self" in the OCL query.
Usually, you start with a query on the root objects of your data file.
For example (also see the example report in [1]), the root object in an
Ecore file is usually an EPackage. To query all classes in this package
you can use a data set with the following properties:
input: contents of the resource specified in the data source
(default, if no value for parameter *input is provided)
context type: EPackage
query text: self.eClasses
result type: EClass
You can then continue with a data set for a class's attributes:
input: reference to an object
(for example row["*self"] from the data source above)
context type: EClass
query text: self.eAttributes
result type: EAttribute
Hope this helps.
[1] http://dev.eclipse.org/newslists/news.eclipse.dtp/msg01441.h tml
--
Andreas
|
|
|
|
|
|
|
|
Re: ODA Ecore Getting Started [message #594907 is a reply to message #53975] |
Mon, 23 March 2009 12:13 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) |
Andreas Mayer![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=an.mayer%40gmx.net) Messages: 32 Registered: July 2009 |
Member |
|
|
Geoffry Roberts wrote:
> I created a data source and gave it the URI to one of my *.ecore files,
> and left The Packages: box alone showing
> http://www.eclipse.org.emf/2002/Ecore
The Ecore file contains the model of your model (metamodel). Therefore,
you will see types such as EAttribute, EClass, EClassifier, or EReference.
> I notice that in the packages, I
> see nothing familiar (i.e. from my model). Is this as it should be?
I assume, you have already generated the model and editor code from your
Ecore file and its corresponding Genmodel. You can use that editor to
create an instance of your model. The data source for such a file will
provide you with "familiar" business objects.
> I then tried to create a data set. After trying different contexts, I
> once again don't see anything familiar, nor does the query box
> validation approve of anything I enter. Is this right?
The context type is the type of the variable "self" in the OCL query.
Usually, you start with a query on the root objects of your data file.
For example (also see the example report in [1]), the root object in an
Ecore file is usually an EPackage. To query all classes in this package
you can use a data set with the following properties:
input: contents of the resource specified in the data source
(default, if no value for parameter *input is provided)
context type: EPackage
query text: self.eClasses
result type: EClass
You can then continue with a data set for a class's attributes:
input: reference to an object
(for example row["*self"] from the data source above)
context type: EClass
query text: self.eAttributes
result type: EAttribute
Hope this helps.
[1] http://dev.eclipse.org/newslists/news.eclipse.dtp/msg01441.h tml
--
Andreas
|
|
|
Powered by
FUDForum. Page generated in 0.05021 seconds