Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipse-incubator-e4-dev] Fw: Declarative UI roundup?

It seems I might have missed your point. :-)  Comments inline:

On Fri, Nov 7, 2008 at 5:28 AM, Ed Merks <ed.merks@xxxxxxxxx> wrote:
David,

Comments below.


David Orme wrote:
<snip/>

But to create a Text inside a Group becomes a problem since Group has setText().

To handle that rare case, XSWT has an <x:children> meta-node.  So you can write:

<group>
  <layout x:class="fillLayout">

This is like xsi:type I assume.  Think of how you'd do this in JSON.  It's important to have this information early...

Yes, I think.  XSWT does type inferencing to know the type of object to construct.  But when you have:

#setLayout(Layout)

the programmer must explicitly supply which concrete subclass of Layout to construct, which is the purpose of the x:class meta-attribute.



Dave


Back to the top