Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » EMF Based Master Details : Grouping
EMF Based Master Details : Grouping [message #755322] Tue, 08 November 2011 07:16 Go to next message
Murthy Bhat is currently offline Murthy BhatFriend
Messages: 159
Registered: July 2009
Senior Member
Hello,

I have an EMF based model which contains a Root model. The root model then contains lists of difference types of Objects. an example looks like the one below:

Model
-Root
--List<ObjectA>
---A1
---A2
--List<ObjectB>
---B1
---B2
---B3
-ClassA
-ClassB

I have created a Master details page for editing this model using some samples. It uses 'AdapterFactoryContentProvider' and 'AdapterFactoryLabelProvider' for display.

Though all the model elements are displayed, they all appear in sequential order without any parent child grouping. I would like to have the viewer in the form displayed above where I could only have actions like 'AddChild' to the list object and avoid actions like 'AddSibling'. Could someone please help me out?

Thanks in advance for help.

Thanks,
Murthy
Re: EMF Based Master Details : Grouping [message #755347 is a reply to message #755322] Tue, 08 November 2011 08:37 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33142
Registered: July 2009
Senior Member
Murthy,

The book has a section describing how to introduce intermediate
objects. It's also been explained on the newsgroup a few times, so you
could try searching for that.


On 08/11/2011 8:16 AM, Murthybhat wrote:
> Hello,
>
> I have an EMF based model which contains a Root model. The root model
> then contains lists of difference types of Objects. an example looks
> like the one below:
>
> Model
> -Root
> --List<ObjectA>
> ---A1
> ---A2 --List<ObjectB>
> ---B1
> ---B2
> ---B3
> -ClassA
> -ClassB
>
> I have created a Master details page for editing this model using some
> samples. It uses 'AdapterFactoryContentProvider' and
> 'AdapterFactoryLabelProvider' for display.
> Though all the model elements are displayed, they all appear in
> sequential order without any parent child grouping. I would like to
> have the viewer in the form displayed above where I could only have
> actions like 'AddChild' to the list object and avoid actions like
> 'AddSibling'. Could someone please help me out?
>
> Thanks in advance for help.
>
> Thanks,
> Murthy
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:move entry in feature map
Next Topic:Ecore Model of XML Schema
Goto Forum:
  


Current Time: Sat Apr 27 03:06:33 GMT 2024

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

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

Back to the top