Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » DTP » ODA Ecore Getting Started
ODA Ecore Getting Started [message #53941] Wed, 18 March 2009 17:41 Go to next message
Geoffry Roberts is currently offline Geoffry RobertsFriend
Messages: 71
Registered: July 2009
Member
All,

Could there be a problem with the most recent nightly build?

dtp-incubator-sdk-1.7.0M7-200903180500.zip

If so, is there a more reliable build?

I discovered ODA Ecore this morning rejoiced a bit because I think I can
really use it. I downloaded, installed, copied the features/ into
features/, plugins/ into plugins/, and started eclipse with the -clean
flag.

The result: Nada.

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.
Re: ODA Ecore Getting Started [message #53962 is a reply to message #53941] Thu, 19 March 2009 11:43 Go to previous messageGo to next message
Eclipse UserFriend
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 #53969 is a reply to message #53962] Thu, 19 March 2009 14:55 Go to previous messageGo to next message
Geoffry Roberts is currently offline Geoffry RobertsFriend
Messages: 71
Registered: July 2009
Member
Andreas Mayer wrote:

> 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

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?
Re: ODA Ecore Getting Started [message #53972 is a reply to message #53969] Fri, 20 March 2009 10:46 Go to previous messageGo to next message
Eclipse UserFriend
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 #53975 is a reply to message #53972] Fri, 20 March 2009 17:39 Go to previous messageGo to next message
Geoffry Roberts is currently offline Geoffry RobertsFriend
Messages: 71
Registered: July 2009
Member
Andreas Mayer wrote:

> Shameless plug: Alternatively, you could give my driver [1] a try.

> [1] http://dev.eclipse.org/newslists/news.eclipse.dtp/msg01441.h tml

Your shameless plug worked, I installed your driver and voila!

I do have a question. I'm not sure what I should be seeing in the dialog
boxes. In addition, I'm just beginning to learn OCL so bear with me.

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. I notice that in the packages, I
see nothing familiar (i.e. from my model). Is this as it should be?

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?

My ecore model should be good. It was generated from an XML schema and
when I generated my EMF code. The code works.
Re: ODA Ecore Getting Started [message #53978 is a reply to message #53969] Sat, 21 March 2009 04:13 Go to previous messageGo to next message
Linda ChanFriend
Messages: 845
Registered: July 2009
Senior Member
>>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?

To use the oda.ecore component with JDK 1.4.2, use its backport source from
CVS.
See the Backport section on the project page:
http://wiki.eclipse.org/Ecore_ODA_Driver

Linda
Re: ODA Ecore Getting Started [message #53980 is a reply to message #53975] Mon, 23 March 2009 12:13 Go to previous message
Eclipse UserFriend
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 #594856 is a reply to message #53941] Thu, 19 March 2009 11:43 Go to previous message
Andreas Mayer is currently offline Andreas MayerFriend
Messages: 32
Registered: July 2009
Member
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 #594874 is a reply to message #53962] Thu, 19 March 2009 14:55 Go to previous message
Geoffry Roberts is currently offline Geoffry RobertsFriend
Messages: 71
Registered: July 2009
Member
Andreas Mayer wrote:

> 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

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?
Re: ODA Ecore Getting Started [message #594886 is a reply to message #53969] Fri, 20 March 2009 10:46 Go to previous message
Andreas Mayer is currently offline Andreas MayerFriend
Messages: 32
Registered: July 2009
Member
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 #594891 is a reply to message #53972] Fri, 20 March 2009 17:39 Go to previous message
Geoffry Roberts is currently offline Geoffry RobertsFriend
Messages: 71
Registered: July 2009
Member
Andreas Mayer wrote:

> Shameless plug: Alternatively, you could give my driver [1] a try.

> [1] http://dev.eclipse.org/newslists/news.eclipse.dtp/msg01441.h tml

Your shameless plug worked, I installed your driver and voila!

I do have a question. I'm not sure what I should be seeing in the dialog
boxes. In addition, I'm just beginning to learn OCL so bear with me.

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 I notice that in the packages, I
see nothing familiar (i.e. from my model). Is this as it should be?

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?

My ecore model should be good. It was generated from an XML schema and
when I generated my EMF code. The code works.
Re: ODA Ecore Getting Started [message #594897 is a reply to message #53969] Sat, 21 March 2009 04:13 Go to previous message
Linda ChanFriend
Messages: 845
Registered: July 2009
Senior Member
>>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?

To use the oda.ecore component with JDK 1.4.2, use its backport source from
CVS.
See the Backport section on the project page:
http://wiki.eclipse.org/Ecore_ODA_Driver

Linda
Re: ODA Ecore Getting Started [message #594907 is a reply to message #53975] Mon, 23 March 2009 12:13 Go to previous message
Andreas Mayer is currently offline Andreas MayerFriend
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
Previous Topic:ODA Ecore Getting Started
Next Topic:Need help reviewing some rework for the MySQL enablement connection profile
Goto Forum:
  


Current Time: Sat Apr 27 01:44:03 GMT 2024

Powered by FUDForum. Page generated in 0.04047 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top