Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc) » [Teneo] ejdo file configuration
|
Re: [Teneo] ejdo file configuration [message #86920 is a reply to message #86889] |
Wed, 20 June 2007 15:20 |
Martin Taal 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 |
Eclipse User |
|
|
|
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 |
Martin Taal 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 |
Martin Taal 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 |
Eclipse User |
|
|
|
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 |
Martin Taal 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
|
|
|
Goto Forum:
Current Time: Thu Sep 19 23:49:22 GMT 2024
Powered by FUDForum. Page generated in 0.03902 seconds
|