Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [Teneo] ejdo file configuration
[Teneo] ejdo file configuration [message #86889] Wed, 20 June 2007 14:56 Go to next message
Eclipse UserFriend
Originally posted by: fc_supercanard.yahoo.fr

Hello,

I am trying to create ejdo files, and I have some questions about it...

I would like to know what is exactly nsuri, described in the
library.ejdo file as "a comma delimited list of namespace uris (incl.
http://) of epackages that are stored in this EMFDataStore/PMF."

Indeed, in the example file, the nsuri is
"http://www.example.eclipse.org/Library"
for the package org.eclipse.example.library

And when I try to specify as nsuri
"http://www.emf.test.store.elver.org/Library" for my own package,
an error occurs when I want to open resource :

"EPackage with nsuri http://www.emf.test.store.elver.org/Library can not
be found"

Regards,

Quentin
Re: [Teneo] ejdo file configuration [message #86920 is a reply to message #86889] Wed, 20 June 2007 15:20 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Quentin,
The nsuri used by Teneo is the one located in a member in the generated source code. So Teneo does
not use the nsuri in the ecore file (unless you use dynamic emf). You can look in the generated
Package interface or PackageImpl class. The ns uri member looks like this:

/**
* The package namespace URI.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
String eNS_URI = "http://xsd.tns.example.com/testinheritance/model";

gr. Martin

french.cancan wrote:
> Hello,
>
> I am trying to create ejdo files, and I have some questions about it...
>
> I would like to know what is exactly nsuri, described in the
> library.ejdo file as "a comma delimited list of namespace uris (incl.
> http://) of epackages that are stored in this EMFDataStore/PMF."
>
> Indeed, in the example file, the nsuri is
> "http://www.example.eclipse.org/Library"
> for the package org.eclipse.example.library
>
> And when I try to specify as nsuri
> "http://www.emf.test.store.elver.org/Library" for my own package,
> an error occurs when I want to open resource :
>
> "EPackage with nsuri http://www.emf.test.store.elver.org/Library can not
> be found"
>
> Regards,
>
> Quentin


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: [Teneo] ejdo file configuration [message #86937 is a reply to message #86920] Thu, 21 June 2007 07:45 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: fc_supercanard.yahoo.fr

Thank you for the information, but it does the same.

nsURI="http://www.elver.org/store/test/emf/Library" nsPrefix="library"
is specified in the ecore file

as well as in the LibraryPackage class :

/**
* The package namespace URI.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
String eNS_URI = "http://www.elver.org/store/test/emf/Library";


I modified the ejdo file in this way but I got the same error.
Is there another documentation source than
http://www.elver.org/jpox/resource_utility.html ?

Regards,

Quentin


Martin Taal wrote:
> Hi Quentin,
> The nsuri used by Teneo is the one located in a member in the generated
> source code. So Teneo does not use the nsuri in the ecore file (unless
> you use dynamic emf). You can look in the generated Package interface or
> PackageImpl class. The ns uri member looks like this:
>
> /**
> * The package namespace URI.
> * <!-- begin-user-doc -->
> * <!-- end-user-doc -->
> * @generated
> */
> String eNS_URI = "http://xsd.tns.example.com/testinheritance/model";
>
> gr. Martin
>
> french.cancan wrote:
>> Hello,
>>
>> I am trying to create ejdo files, and I have some questions about it...
>>
>> I would like to know what is exactly nsuri, described in the
>> library.ejdo file as "a comma delimited list of namespace uris (incl.
>> http://) of epackages that are stored in this EMFDataStore/PMF."
>>
>> Indeed, in the example file, the nsuri is
>> "http://www.example.eclipse.org/Library"
>> for the package org.eclipse.example.library
>>
>> And when I try to specify as nsuri
>> "http://www.emf.test.store.elver.org/Library" for my own package,
>> an error occurs when I want to open resource :
>>
>> "EPackage with nsuri http://www.emf.test.store.elver.org/Library can
>> not be found"
>>
>> Regards,
>>
>> Quentin
>
>
Re: [Teneo] ejdo file configuration [message #86951 is a reply to message #86937] Thu, 21 June 2007 08:01 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
For the resource utility to work the epackage you are referring to needs to be initialized in the
running eclipse application (i.e. the epackage needs to be present in the epackage registry). This
does not happen by itself. I tested the resource utility by starting a separate eclipse app from my
development workbench and then define an ejdo file. In this scenario the epackage model/editor
plugin are also registered and my impression is that this is the reason that it works.
But I am not an expert at all of the way eclipse loads/initializes plugins.

gr. Martin

french.cancan wrote:
> Thank you for the information, but it does the same.
>
> nsURI="http://www.elver.org/store/test/emf/Library" nsPrefix="library"
> is specified in the ecore file
>
> as well as in the LibraryPackage class :
>
> /**
> * The package namespace URI.
> * <!-- begin-user-doc -->
> * <!-- end-user-doc -->
> * @generated
> */
> String eNS_URI = "http://www.elver.org/store/test/emf/Library";
>
>
> I modified the ejdo file in this way but I got the same error.
> Is there another documentation source than
> http://www.elver.org/jpox/resource_utility.html ?
>
> Regards,
>
> Quentin
>
>
> Martin Taal wrote:
>> Hi Quentin,
>> The nsuri used by Teneo is the one located in a member in the
>> generated source code. So Teneo does not use the nsuri in the ecore
>> file (unless you use dynamic emf). You can look in the generated
>> Package interface or PackageImpl class. The ns uri member looks like
>> this:
>>
>> /**
>> * The package namespace URI.
>> * <!-- begin-user-doc -->
>> * <!-- end-user-doc -->
>> * @generated
>> */
>> String eNS_URI = "http://xsd.tns.example.com/testinheritance/model";
>>
>> gr. Martin
>>
>> french.cancan wrote:
>>> Hello,
>>>
>>> I am trying to create ejdo files, and I have some questions about it...
>>>
>>> I would like to know what is exactly nsuri, described in the
>>> library.ejdo file as "a comma delimited list of namespace uris (incl.
>>> http://) of epackages that are stored in this EMFDataStore/PMF."
>>>
>>> Indeed, in the example file, the nsuri is
>>> "http://www.example.eclipse.org/Library"
>>> for the package org.eclipse.example.library
>>>
>>> And when I try to specify as nsuri
>>> "http://www.emf.test.store.elver.org/Library" for my own package,
>>> an error occurs when I want to open resource :
>>>
>>> "EPackage with nsuri http://www.emf.test.store.elver.org/Library can
>>> not be found"
>>>
>>> Regards,
>>>
>>> Quentin
>>
>>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: [Teneo] ejdo file configuration [message #607026 is a reply to message #86889] Wed, 20 June 2007 15:20 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Quentin,
The nsuri used by Teneo is the one located in a member in the generated source code. So Teneo does
not use the nsuri in the ecore file (unless you use dynamic emf). You can look in the generated
Package interface or PackageImpl class. The ns uri member looks like this:

/**
* The package namespace URI.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
String eNS_URI = "http://xsd.tns.example.com/testinheritance/model";

gr. Martin

french.cancan wrote:
> Hello,
>
> I am trying to create ejdo files, and I have some questions about it...
>
> I would like to know what is exactly nsuri, described in the
> library.ejdo file as "a comma delimited list of namespace uris (incl.
> http://) of epackages that are stored in this EMFDataStore/PMF."
>
> Indeed, in the example file, the nsuri is
> "http://www.example.eclipse.org/Library"
> for the package org.eclipse.example.library
>
> And when I try to specify as nsuri
> "http://www.emf.test.store.elver.org/Library" for my own package,
> an error occurs when I want to open resource :
>
> "EPackage with nsuri http://www.emf.test.store.elver.org/Library can not
> be found"
>
> Regards,
>
> Quentin


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: [Teneo] ejdo file configuration [message #607027 is a reply to message #86920] Thu, 21 June 2007 07:45 Go to previous message
Eclipse UserFriend
Originally posted by: fc_supercanard.yahoo.fr

Thank you for the information, but it does the same.

nsURI="http://www.elver.org/store/test/emf/Library" nsPrefix="library"
is specified in the ecore file

as well as in the LibraryPackage class :

/**
* The package namespace URI.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
String eNS_URI = "http://www.elver.org/store/test/emf/Library";


I modified the ejdo file in this way but I got the same error.
Is there another documentation source than
http://www.elver.org/jpox/resource_utility.html ?

Regards,

Quentin


Martin Taal wrote:
> Hi Quentin,
> The nsuri used by Teneo is the one located in a member in the generated
> source code. So Teneo does not use the nsuri in the ecore file (unless
> you use dynamic emf). You can look in the generated Package interface or
> PackageImpl class. The ns uri member looks like this:
>
> /**
> * The package namespace URI.
> * <!-- begin-user-doc -->
> * <!-- end-user-doc -->
> * @generated
> */
> String eNS_URI = "http://xsd.tns.example.com/testinheritance/model";
>
> gr. Martin
>
> french.cancan wrote:
>> Hello,
>>
>> I am trying to create ejdo files, and I have some questions about it...
>>
>> I would like to know what is exactly nsuri, described in the
>> library.ejdo file as "a comma delimited list of namespace uris (incl.
>> http://) of epackages that are stored in this EMFDataStore/PMF."
>>
>> Indeed, in the example file, the nsuri is
>> "http://www.example.eclipse.org/Library"
>> for the package org.eclipse.example.library
>>
>> And when I try to specify as nsuri
>> "http://www.emf.test.store.elver.org/Library" for my own package,
>> an error occurs when I want to open resource :
>>
>> "EPackage with nsuri http://www.emf.test.store.elver.org/Library can
>> not be found"
>>
>> Regards,
>>
>> Quentin
>
>
Re: [Teneo] ejdo file configuration [message #607028 is a reply to message #86937] Thu, 21 June 2007 08:01 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
For the resource utility to work the epackage you are referring to needs to be initialized in the
running eclipse application (i.e. the epackage needs to be present in the epackage registry). This
does not happen by itself. I tested the resource utility by starting a separate eclipse app from my
development workbench and then define an ejdo file. In this scenario the epackage model/editor
plugin are also registered and my impression is that this is the reason that it works.
But I am not an expert at all of the way eclipse loads/initializes plugins.

gr. Martin

french.cancan wrote:
> Thank you for the information, but it does the same.
>
> nsURI="http://www.elver.org/store/test/emf/Library" nsPrefix="library"
> is specified in the ecore file
>
> as well as in the LibraryPackage class :
>
> /**
> * The package namespace URI.
> * <!-- begin-user-doc -->
> * <!-- end-user-doc -->
> * @generated
> */
> String eNS_URI = "http://www.elver.org/store/test/emf/Library";
>
>
> I modified the ejdo file in this way but I got the same error.
> Is there another documentation source than
> http://www.elver.org/jpox/resource_utility.html ?
>
> Regards,
>
> Quentin
>
>
> Martin Taal wrote:
>> Hi Quentin,
>> The nsuri used by Teneo is the one located in a member in the
>> generated source code. So Teneo does not use the nsuri in the ecore
>> file (unless you use dynamic emf). You can look in the generated
>> Package interface or PackageImpl class. The ns uri member looks like
>> this:
>>
>> /**
>> * The package namespace URI.
>> * <!-- begin-user-doc -->
>> * <!-- end-user-doc -->
>> * @generated
>> */
>> String eNS_URI = "http://xsd.tns.example.com/testinheritance/model";
>>
>> gr. Martin
>>
>> french.cancan wrote:
>>> Hello,
>>>
>>> I am trying to create ejdo files, and I have some questions about it...
>>>
>>> I would like to know what is exactly nsuri, described in the
>>> library.ejdo file as "a comma delimited list of namespace uris (incl.
>>> http://) of epackages that are stored in this EMFDataStore/PMF."
>>>
>>> Indeed, in the example file, the nsuri is
>>> "http://www.example.eclipse.org/Library"
>>> for the package org.eclipse.example.library
>>>
>>> And when I try to specify as nsuri
>>> "http://www.emf.test.store.elver.org/Library" for my own package,
>>> an error occurs when I want to open resource :
>>>
>>> "EPackage with nsuri http://www.emf.test.store.elver.org/Library can
>>> not be found"
>>>
>>> Regards,
>>>
>>> Quentin
>>
>>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Previous Topic:[Teneo] ejdo file configuration
Next Topic:[EMF Compare] text compare instead of emf compare
Goto Forum:
  


Current Time: Fri Mar 29 11:34:15 GMT 2024

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

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

Back to the top