Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [Emfatic] Help with namespace warning.
[Emfatic] Help with namespace warning. [message #546821] Wed, 14 July 2010 10:33 Go to next message
Toñi  Reina is currently offline Toñi ReinaFriend
Messages: 209
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------030404000208030002020909
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit

Hi all,

I'm just starting to define emf with Emfatic. I'm testing the tool with
a metamodel that has various packages, similar to the following one:

@namespace(uri="http://org.test",prefix="test")
@gmf(foo="bar")
package test;

package testA{


}

The question is related to a warning that appears in Emfatic when I
write the first subpackage. That is, if the code is the one shown below
(without the subpackage) the warning does not appear. However, when I
introduce the subpackges it is there.

@namespace(uri="http://org.test",prefix="test")
@gmf(foo="bar")
package test;

The warning reports about a null uri and a null prefix in the namespace.
However, these properties are set, as you can see above.
I have attached a screenshot to see the warning better.

Best regards,
To
Re: [Emfatic] Help with namespace warning. [message #546871 is a reply to message #546821] Wed, 14 July 2010 13:17 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------010007040901010002040408
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit

To


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: [Emfatic] Help with namespace warning. [message #547042 is a reply to message #546871] Thu, 15 July 2010 08:24 Go to previous messageGo to next message
Toñi  Reina is currently offline Toñi ReinaFriend
Messages: 209
Registered: July 2009
Senior Member
Thanks Ed,

that was the exact problem. I supposed EMF could obtain the
subpackages namespace automatically, so I didn't write any @namespace
label attached to the supackages.

Regards,
Toñi

El 14/07/2010 15:17, Ed Merks escribió:
> Toñi,
>
> I imagine the package testA needs its own @namespace annotation.
>
>
> Toñi Reina Quintero wrote:
>> Hi all,
>>
>> I'm just starting to define emf with Emfatic. I'm testing the tool
>> with a metamodel that has various packages, similar to the following one:
>>
>> @namespace(uri="http://org.test",prefix="test")
>> @gmf(foo="bar")
>> package test;
>>
>> package testA{
>>
>>
>> }
>>
>> The question is related to a warning that appears in Emfatic when I
>> write the first subpackage. That is, if the code is the one shown
>> below (without the subpackage) the warning does not appear. However,
>> when I introduce the subpackges it is there.
>>
>> @namespace(uri="http://org.test",prefix="test")
>> @gmf(foo="bar")
>> package test;
>>
>> The warning reports about a null uri and a null prefix in the
>> namespace. However, these properties are set, as you can see above.
>> I have attached a screenshot to see the warning better.
>>
>> Best regards,
>> Toñi Reina
>>
>>
>> ------------------------------------------------------------ ------------
>>
Re: [Emfatic] Help with namespace warning. [message #547068 is a reply to message #547042] Thu, 15 July 2010 13:06 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
Toñi,

Indeed. I expect the nsPrefix (prefix) could have been determined from
the name as a very reasonable default as well.


Toñi Reina Quintero wrote:
> Thanks Ed,
>
> that was the exact problem. I supposed EMF could obtain the
> subpackages namespace automatically, so I didn't write any @namespace
> label attached to the supackages.
>
> Regards,
> Toñi
>
> El 14/07/2010 15:17, Ed Merks escribió:
>> Toñi,
>>
>> I imagine the package testA needs its own @namespace annotation.
>>
>>
>> Toñi Reina Quintero wrote:
>>> Hi all,
>>>
>>> I'm just starting to define emf with Emfatic. I'm testing the tool
>>> with a metamodel that has various packages, similar to the following
>>> one:
>>>
>>> @namespace(uri="http://org.test",prefix="test")
>>> @gmf(foo="bar")
>>> package test;
>>>
>>> package testA{
>>>
>>>
>>> }
>>>
>>> The question is related to a warning that appears in Emfatic when I
>>> write the first subpackage. That is, if the code is the one shown
>>> below (without the subpackage) the warning does not appear. However,
>>> when I introduce the subpackges it is there.
>>>
>>> @namespace(uri="http://org.test",prefix="test")
>>> @gmf(foo="bar")
>>> package test;
>>>
>>> The warning reports about a null uri and a null prefix in the
>>> namespace. However, these properties are set, as you can see above.
>>> I have attached a screenshot to see the warning better.
>>>
>>> Best regards,
>>> Toñi Reina
>>>
>>>
>>> ------------------------------------------------------------ ------------
>>>
>>>
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: [Emfatic] Help with namespace warning. [message #623058 is a reply to message #546821] Wed, 14 July 2010 13:17 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------010007040901010002040408
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit

To


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: [Emfatic] Help with namespace warning. [message #623063 is a reply to message #546871] Thu, 15 July 2010 08:24 Go to previous message
Toñi  Reina is currently offline Toñi ReinaFriend
Messages: 209
Registered: July 2009
Senior Member
Thanks Ed,

that was the exact problem. I supposed EMF could obtain the
subpackages namespace automatically, so I didn't write any @namespace
label attached to the supackages.

Regards,
Toñi

El 14/07/2010 15:17, Ed Merks escribió:
> Toñi,
>
> I imagine the package testA needs its own @namespace annotation.
>
>
> Toñi Reina Quintero wrote:
>> Hi all,
>>
>> I'm just starting to define emf with Emfatic. I'm testing the tool
>> with a metamodel that has various packages, similar to the following one:
>>
>> @namespace(uri="http://org.test",prefix="test")
>> @gmf(foo="bar")
>> package test;
>>
>> package testA{
>>
>>
>> }
>>
>> The question is related to a warning that appears in Emfatic when I
>> write the first subpackage. That is, if the code is the one shown
>> below (without the subpackage) the warning does not appear. However,
>> when I introduce the subpackges it is there.
>>
>> @namespace(uri="http://org.test",prefix="test")
>> @gmf(foo="bar")
>> package test;
>>
>> The warning reports about a null uri and a null prefix in the
>> namespace. However, these properties are set, as you can see above.
>> I have attached a screenshot to see the warning better.
>>
>> Best regards,
>> Toñi Reina
>>
>>
>> ------------------------------------------------------------ ------------
>>
Re: [Emfatic] Help with namespace warning. [message #623064 is a reply to message #547042] Thu, 15 July 2010 13:06 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
Toñi,

Indeed. I expect the nsPrefix (prefix) could have been determined from
the name as a very reasonable default as well.


Toñi Reina Quintero wrote:
> Thanks Ed,
>
> that was the exact problem. I supposed EMF could obtain the
> subpackages namespace automatically, so I didn't write any @namespace
> label attached to the supackages.
>
> Regards,
> Toñi
>
> El 14/07/2010 15:17, Ed Merks escribió:
>> Toñi,
>>
>> I imagine the package testA needs its own @namespace annotation.
>>
>>
>> Toñi Reina Quintero wrote:
>>> Hi all,
>>>
>>> I'm just starting to define emf with Emfatic. I'm testing the tool
>>> with a metamodel that has various packages, similar to the following
>>> one:
>>>
>>> @namespace(uri="http://org.test",prefix="test")
>>> @gmf(foo="bar")
>>> package test;
>>>
>>> package testA{
>>>
>>>
>>> }
>>>
>>> The question is related to a warning that appears in Emfatic when I
>>> write the first subpackage. That is, if the code is the one shown
>>> below (without the subpackage) the warning does not appear. However,
>>> when I introduce the subpackges it is there.
>>>
>>> @namespace(uri="http://org.test",prefix="test")
>>> @gmf(foo="bar")
>>> package test;
>>>
>>> The warning reports about a null uri and a null prefix in the
>>> namespace. However, these properties are set, as you can see above.
>>> I have attached a screenshot to see the warning better.
>>>
>>> Best regards,
>>> Toñi Reina
>>>
>>>
>>> ------------------------------------------------------------ ------------
>>>
>>>
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:ebedded emftext editor
Next Topic:[WME] How to enable logging in WME WorkflowRunner?
Goto Forum:
  


Current Time: Tue Apr 23 08:35:17 GMT 2024

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

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

Back to the top