Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » One Model editor with derived models
One Model editor with derived models [message #895940] Mon, 16 July 2012 15:02 Go to next message
John M. is currently offline John M.Friend
Messages: 198
Registered: July 2010
Senior Member
Hello,

I have a simple model which holds an interface.
I have certain models, which extends that interface.

Is there any possibility to generate one editor for editing the whole model?

EDIT:
One way is to edit the parent edit class and add the call to collectNewChildDescriptors, but it seems not to be the nice way.

[Updated on: Mon, 16 July 2012 15:14]

Report message to a moderator

Re: One Model editor with derived models [message #895946 is a reply to message #895940] Mon, 16 July 2012 15:33 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 26237
Registered: July 2009
Senior Member
It sounds like the approach in
http://ed-merks.blogspot.com/2008/01/creating-children-you-didnt-know.html
might do the trick.

On 16/07/2012 5:02 PM, Missing name Mising name wrote:
> Hello,
>
> I have a simple model which holds an interface.
> I have certain models, which extends that interface.
>
> Is there any possibility to generate one editor for editing the whole
> model?
Re: One Model editor with derived models [message #895959 is a reply to message #895946] Mon, 16 July 2012 16:19 Go to previous messageGo to next message
John M. is currently offline John M.Friend
Messages: 198
Registered: July 2010
Senior Member
Thanks Ed!
You are a great help. Smile
Re: One Model editor with derived models [message #931664 is a reply to message #895959] Wed, 03 October 2012 12:07 Go to previous messageGo to next message
John M. is currently offline John M.Friend
Messages: 198
Registered: July 2010
Senior Member
Hello,

I have replaced the EMap with a containment reference, but the child extender doesn't work any longer.

Could be the problem, that the EClass is abstract?
Re: One Model editor with derived models [message #931832 is a reply to message #931664] Wed, 03 October 2012 15:08 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 26237
Registered: July 2009
Senior Member
You regenerated the derived models?

On 03/10/2012 2:07 PM, John M. wrote:
> Hello,
>
> I have replaced the EMap with a containment reference, but the child
> extender doesn't work any longer.
>
> Could be the problem, that the EClass is abstract?
Re: One Model editor with derived models [message #932646 is a reply to message #931832] Thu, 04 October 2012 09:40 Go to previous message
John M. is currently offline John M.Friend
Messages: 198
Registered: July 2010
Senior Member
Yeah sure, all models regenerated. Smile
But forgotten to activate the right plug-ins.

You can say like Homer from the Simpsons: D'oh. Smile
Previous Topic:Sort actions in menu
Next Topic:Reference depending on parent reference
Goto Forum:
  


Current Time: Sat Nov 29 00:30:49 GMT 2014

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

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