Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » [HUTN] Syntax for EDataType values
[HUTN] Syntax for EDataType values [message #552449] Thu, 12 August 2010 09:36 Go to next message
Hallvard Traetteberg is currently offline Hallvard TraettebergFriend
Messages: 673
Registered: July 2009
Location: Trondheim, Norway
Senior Member
Hi,

I've an attribute of the Ecore type EDouble, and the HUTN editor
complains that 1.0 is not an EDouble value. If I change the type to
EFloat 1.0 is accepted. I guess that float is treated specially, but I
really hope there is generic support for other EDataTypes. In my case, I
can change the type from EDouble to EFloat in the model, but changing
the type in the model isn't always an option.

So, how can literals of EDataTypes other than integers, floats and
strings be specified?

Hallvard
Re: [HUTN] Syntax for EDataType values [message #552488 is a reply to message #552449] Thu, 12 August 2010 11:28 Go to previous messageGo to next message
Louis Rose is currently offline Louis RoseFriend
Messages: 440
Registered: July 2009
Location: York, United Kingdom
Senior Member
Hi Hallvard,

This sounds like a bug. Would you file a bug report against HUTN for this? https://bugs.eclipse.org/bugs/enter_bug.cgi?product=GMT& component=Epsilon

I suspect this is to do with the way in which EMF implements EStructuralFeature#isInstance.

Cheers,
Louis.
Re: [HUTN] Syntax for EDataType values [message #552516 is a reply to message #552488] Thu, 12 August 2010 12:49 Go to previous messageGo to next message
Hallvard Traetteberg is currently offline Hallvard TraettebergFriend
Messages: 673
Registered: July 2009
Location: Trondheim, Norway
Senior Member
On 12.08.10 13.28, Louis Rose wrote:
> Hi Hallvard,
>
> This sounds like a bug. Would you file a bug report against HUTN for
> this?
> https://bugs.eclipse.org/bugs/enter_bug.cgi?product=GMT& component=Epsilon
>
> I suspect this is to do with the way in which EMF implements
> EStructuralFeature#isInstance.

The natural thing to do (for EMF at least) is to pass the literal's
string representation to the factory's createFromString(EDataType,
String) method.

I'll add the bug later, this evening.

Hallvard
Re: [HUTN] Syntax for EDataType values [message #554197 is a reply to message #552516] Fri, 20 August 2010 13:44 Go to previous message
Louis Rose is currently offline Louis RoseFriend
Messages: 440
Registered: July 2009
Location: York, United Kingdom
Senior Member
This has been fixed as part of #323150 https://bugs.eclipse.org/bugs/show_bug.cgi?id=323150

The fix is in SVN now, and will appear in the next interim build.

Cheers,
Louis.
Re: [HUTN] Syntax for EDataType values [message #592950 is a reply to message #552449] Thu, 12 August 2010 11:28 Go to previous message
Louis Rose is currently offline Louis RoseFriend
Messages: 440
Registered: July 2009
Location: York, United Kingdom
Senior Member
Hi Hallvard,

This sounds like a bug. Would you file a bug report against HUTN for this? https://bugs.eclipse.org/bugs/enter_bug.cgi?product=GMT& component=Epsilon

I suspect this is to do with the way in which EMF implements EStructuralFeature#isInstance.

Cheers,
Louis.
Re: [HUTN] Syntax for EDataType values [message #592995 is a reply to message #592950] Thu, 12 August 2010 12:49 Go to previous message
Hallvard Traetteberg is currently offline Hallvard TraettebergFriend
Messages: 673
Registered: July 2009
Location: Trondheim, Norway
Senior Member
On 12.08.10 13.28, Louis Rose wrote:
> Hi Hallvard,
>
> This sounds like a bug. Would you file a bug report against HUTN for
> this?
> https://bugs.eclipse.org/bugs/enter_bug.cgi?product=GMT& component=Epsilon
>
> I suspect this is to do with the way in which EMF implements
> EStructuralFeature#isInstance.

The natural thing to do (for EMF at least) is to pass the literal's
string representation to the factory's createFromString(EDataType,
String) method.

I'll add the bug later, this evening.

Hallvard
Re: [HUTN] Syntax for EDataType values [message #593098 is a reply to message #552516] Fri, 20 August 2010 13:44 Go to previous message
Louis Rose is currently offline Louis RoseFriend
Messages: 440
Registered: July 2009
Location: York, United Kingdom
Senior Member
This has been fixed as part of #323150 https://bugs.eclipse.org/bugs/show_bug.cgi?id=323150

The fix is in SVN now, and will appear in the next interim build.

Cheers,
Louis.
Previous Topic:Problems declaring a Float variable
Next Topic:[HUTN] Difference between the implementation and the HUTN specification
Goto Forum:
  


Current Time: Tue Mar 19 03:39:44 GMT 2024

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

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

Back to the top