A node name is first converted to a setter.  If we can't find a method by 
that name, then we try to resolve the node as a class name.

This works nearly all the time.

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">
  <x:children>
    <text x:style="BORDER">
  </x:children>
</group>

-Dave Orme

On Nov 6, 2008 4:25 PM, "Yves YANG" <[EMAIL PROTECTED]> wrote:

 One question on your code: how do you make the difference between property 
"layout" and child "label"?

 

yves
 ------------------------------
 
*From:* [EMAIL PROTECTED] [mailto:
[EMAIL PROTECTED] *On Behalf Of *David Orme

Sent: jeudi 6 novembre 2008 18:11 

To: E4 developer list Subject: Re: [eclipse-incubator-e4-dev] Fw: 
Declarative UI roundup?

  Since I won't ask someone to do something I won't myself do, :-) here's a 
slightly-enhanced Hel...
 
_______________________________________________
eclipse-incubator-e4-dev mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/eclipse-incubator-e4-dev

_______________________________________________
eclipse-incubator-e4-dev mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/eclipse-incubator-e4-dev

Reply via email to