Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Decoration layer over EMF
Decoration layer over EMF [message #950094] Fri, 19 October 2012 16:29 Go to next message
Eyal Heinemann is currently offline Eyal HeinemannFriend
Messages: 7
Registered: October 2012
Junior Member
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 18:09 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
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 11:26 Go to previous messageGo to next message
Eyal Heinemann is currently offline Eyal HeinemannFriend
Messages: 7
Registered: October 2012
Junior Member
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 12:37 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
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


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Create ItemPropertyDescriptor for editing Map
Next Topic:CDO Explicit Lock works only for immediate children
Goto Forum:
  


Current Time: Tue Apr 23 17:46:05 GMT 2024

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

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

Back to the top