Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » OCL » [oclinecore] unable to set EKeys
[oclinecore] unable to set EKeys [message #1731303] Wed, 04 May 2016 08:19 Go to next message
Wilbert Alberts is currently offline Wilbert AlbertsFriend
Messages: 209
Registered: June 2010
Senior Member
Hi,

I think I might have triggered a bug in the oclinecore editor.

I create Basic.ecore with the following content:
package Basic : Basic = 'http://BasickPackage'
{
    class NamedElement
    {
        attribute name : String[1];
    }
}

I also created My.ecore with the following content:
import Basic : 'Basic.ecore#/' ;

package MyPackage : MyPackage = 'http://MyPackage'
{
    class Foo extends Basic::NamedElement;
    class Bar
    {
        property foo : Foo[?] 
        {
            key name;
        }
    }
}


Note that I want to set the EKeys attribute of the Bar::foo property. However, when I save My.ecore from the oclinecore editor, this property is not persisted. If I use the tree editor, set the EKeys attribute, and save it, it is persisted (and actually looks the same as I typed above).

Interesting is that if NamedElement is contained in My.ecore, then the EKeys attribute is persisted correctly.

Is this a bug or did I do something wrong?

Greetings,
Wilbert.
Re: [oclinecore] unable to set EKeys [message #1731309 is a reply to message #1731303] Wed, 04 May 2016 08:44 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

https://bugs.eclipse.org/bugs/show_bug.cgi?id=492960 raised

(too late for M7, probably fixed in RC1).

Regards

Ed Willink

On 04/05/2016 09:19, Wilbert Alberts wrote:
> Hi,
>
> I think I might have triggered a bug in the oclinecore editor.
>
> I create Basic.ecore with the following content:
>
> package Basic : Basic = 'http://BasickPackage'
> {
> class NamedElement
> {
> attribute name : String[1];
> }
> }
>
> I also created My.ecore with the following content:
>
> import Basic : 'Basic.ecore#/' ;
>
> package MyPackage : MyPackage = 'http://MyPackage'
> {
> class Foo extends Basic::NamedElement;
> class Bar
> {
> property foo : Foo[?] {
> key name;
> }
> }
> }
>
>
> Note that I want to set the EKeys attribute of the Bar::foo property.
> However, when I save My.ecore from the oclinecore editor, this
> property is not persisted. If I use the tree editor, set the EKeys
> attribute, and save it, it is persisted (and actually looks the same
> as I typed above).
> Interesting is that if NamedElement is contained in My.ecore, then the
> EKeys attribute is persisted correctly.
>
> Is this a bug or did I do something wrong?
>
> Greetings,
> Wilbert.
>
Previous Topic:Invalid thread access exception while loading a Complete OCL file
Next Topic:EMFtoCSP: Error in the ecl file
Goto Forum:
  


Current Time: Sun May 05 14:07:46 GMT 2024

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

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

Back to the top