I have two emf projects, the first I got an outer package (meaning i cant change it) and another is my own.
The first one has a "MainContainer" item which is usually the object in which the rest take place in.
In my project I need to hold in one of my projects two "MainContainer"s.
So I added in my ecorediag an EDataType that reference the interface of "MainContainer".
Since it's an EDataType I cant create an EReference to it only an EAttribute.
Also when I try to save my object it doesn't save all the data but just writes something as an attribute that can't be parsed. Any advise on the situation?
I tried reading about it and got to something that is "BaseType" but eclipse gives only the option of making the interface the base type so I'm not sure what to do.
On 12/11/2012 11:08 PM, Eyal Heinemann wrote:
> Hi again,
>
> I have two emf projects, the first I got an outer package (meaning i
> cant change it) and another is my own.
> The first one has a "MainContainer" item which is usually the object
> in which the rest take place in.
> In my project I need to hold in one of my projects two "MainContainer"s.
> So I added in my ecorediag an EDataType that reference the interface
> of "MainContainer".
> Since it's an EDataType I cant create an EReference to it only an
> EAttribute.
Yes. So you really want an EClass? Isn't MainContainer already an EClass?
> Also when I try to save my object it doesn't save all the data but
> just writes something as an attribute that can't be parsed. Any advise
> on the situation?
It needs to be an an EClass.
>
> I tried reading about it and got to something that is "BaseType" but
> eclipse gives only the option of making the interface the base type so
> I'm not sure what to do.
What exactly is MainContainer? Something you hand wrote in Java?
>
> Thanks
>
>
The MainContainer is an EClass that came from a different EMF project (what i called the first)
The problem is in order to have it in my new EMF project i can only use it as EDataType.
Is there any way to use it as an EClass?
On 13/11/2012 5:59 PM, Eyal Heinemann wrote:
>
>
> The MainContainer is an EClass that came from a different EMF project
> (what i called the first)
> The problem is in order to have it in my new EMF project i can only
> use it as EDataType.
Why?
> Is there any way to use it as an EClass?
Just load the resource containing MainContainer in the editor where you
need it and start using it.
>
> Thanks again