Skip to main content



      Home
Home » Modeling » Epsilon » [HUTN] Syntax for EDataType values
[HUTN] Syntax for EDataType values [message #552449] Thu, 12 August 2010 05:36 Go to next message
Eclipse UserFriend
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 07:28 Go to previous messageGo to next message
Eclipse UserFriend
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 08:49 Go to previous messageGo to next message
Eclipse UserFriend
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 09:44 Go to previous message
Eclipse UserFriend
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 07:28 Go to previous message
Eclipse UserFriend
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 08:49 Go to previous message
Eclipse UserFriend
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 09:44 Go to previous message
Eclipse UserFriend
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: Wed Jul 23 19:14:36 EDT 2025

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

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

Back to the top