Skip to main content



      Home
Home » Modeling » EMF » Decoration layer over EMF
Decoration layer over EMF [message #950094] Fri, 19 October 2012 12:29 Go to next message
Eclipse UserFriend
Hi all,

I'm working on a program that saves the data using EMF according to the model, and the view is based on a different model.
My original thought was to build a decoration layer between the two that will translate the formation. The problem is I'm trying to use the same interfaces from the EMF, but there I have things like EList and all interfaces are EOject.

Is there any way not expose EList? just List? And maybe to create interfaces that are not necessarily extend EOject?

I'm kind of new for this world, any help will be appreciated.

Thank you
Re: Decoration layer over EMF [message #950197 is a reply to message #950094] Fri, 19 October 2012 14:09 Go to previous messageGo to next message
Eclipse UserFriend
Hi

Try setting "Suppress EMF Types" in the "Model Feature Defaults" section
of your genmodel.

Regards

Ed Willink

On 19/10/2012 18:56, Eyal Heinemann wrote:
> Hi all,
>
> I'm working on a program that saves the data using EMF according to
> the model, and the view is based on a different model.
> My original thought was to build a decoration layer between the two
> that will translate the formation. The problem is I'm trying to use
> the same interfaces from the EMF, but there I have things like EList
> and all interfaces are EOject.
>
> Is there any way not expose EList? just List? And maybe to create
> interfaces that are not necessarily extend EOject?
>
> I'm kind of new for this world, any help will be appreciated.
>
> Thank you
Re: Decoration layer over EMF [message #951074 is a reply to message #950197] Sat, 20 October 2012 07:26 Go to previous messageGo to next message
Eclipse UserFriend
Thanks that did the trick for the first part,
But I also have an interface which I don't want it to inherit EObject interface, is that possible?
in specific this interface inherits two interfaces and each inherits EObject.
In order to use this interface out of the EMF I need it not to have the those methods for me to implement.

or maybe i'm barking the wrong tree?!

Thanks
Re: Decoration layer over EMF [message #951136 is a reply to message #951074] Sat, 20 October 2012 08:37 Go to previous message
Eclipse UserFriend
Eyal,

Set the Root Extends Interface to the empty string.

On 20/10/2012 1:26 PM, Eyal Heinemann wrote:
> Thanks that did the trick for the first part,
> But I also have an interface which I don't want it to inherit EObject
> interface, is that possible?
> in specific this interface inherits two interfaces and each inherits
> EObject. In order to use this interface out of the EMF I need it not
> to have the those methods for me to implement.
>
> or maybe i'm barking the wrong tree?!
>
> Thanks
Previous Topic:Create ItemPropertyDescriptor for editing Map
Next Topic:CDO Explicit Lock works only for immediate children
Goto Forum:
  


Current Time: Mon Jul 07 01:27:23 EDT 2025

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

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

Back to the top