Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » [GEF5 MVC] content object without visual
[GEF5 MVC] content object without visual [message #1820825] Wed, 29 January 2020 19:15 Go to next message
Frank Benoit is currently offline Frank BenoitFriend
Messages: 169
Registered: July 2009
Senior Member
Hi

given a model with a tree like structure.
The root "Model", 2 childs "Data"

Data is mapped to a DataContentPart and does have a visual representation.

But Model has not visible representation.

Does it make sense to set the viewer content to Model or to the list of children?

If I set Model...
Let the contentpartfactory create a content part for M (AbstractContentPart<Group>). There let doGetContentChildren() define the children (C).

Frank
Re: [GEF5 MVC] content object without visual [message #1820832 is a reply to message #1820825] Wed, 29 January 2020 22:01 Go to previous messageGo to next message
Matthias Wienand is currently offline Matthias WienandFriend
Messages: 230
Registered: March 2015
Senior Member
Hi Frank,

I would still introduce that ModelPart:

- simplifies setting the viewer contents
- provides an extra visual that can be used for styling, layout, effects, event handling
- enables adapter bindings, e.g. ContentPolicy for adding/removing data
- allows extension w.r.t. displaying multiple models or other data

Best regards,
Matthias
Re: [GEF5 MVC] content object without visual [message #1820865 is a reply to message #1820832] Thu, 30 January 2020 19:01 Go to previous message
Frank Benoit is currently offline Frank BenoitFriend
Messages: 169
Registered: July 2009
Senior Member
Hi Matthias

thanks for your answer
Previous Topic:Advice on migrating an app from GEF 3 to GEF 5 (MVC)
Next Topic:Where to get I18N Bundle for GEF 3.11
Goto Forum:
  


Current Time: Sat Oct 01 13:33:01 GMT 2022

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

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

Back to the top