Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Retrieving a child datacontext
Retrieving a child datacontext [message #548783] Thu, 22 July 2010 21:21 Go to next message
St Clair Clarke is currently offline St Clair Clarke
Messages: 118
Registered: March 2010
Senior Member
Hello,

I have an XWT AddressForm. I now place a child XWT composite NameForm on the AddressForm. Because the NameForm is independent, there is no inheritance connection to AddressForm as we are accustomed to in ganymede.

Question: How do I retrieve the context of an XWT child composite (NameForm) from the code-behind of the parent (AddressForm).

Also, we yearn for some detail documentation on XWT.

Thanks

St Clair
Re: Retrieving a child datacontext [message #549107 is a reply to message #548783] Sat, 24 July 2010 09:56 Go to previous message
Yves YANG is currently offline Yves YANG
Messages: 687
Registered: July 2009
Senior Member
You should first find the child by the name and then call the method
XWT.getDataConetxt()
Composite child = (Composite ) XWT.findElementByName(content,
"NameForm");
Object dataContext = XWT.getDataConetxt(child);

Best regards
Yves YANG
"St Clair Clarke" <st_clair@flowja.com> wrote in message
news:i2aqrf$5ok$1@build.eclipse.org...
> Hello,
>
> I have an XWT AddressForm. I now place a child XWT composite NameForm on
> the AddressForm. Because the NameForm is independent, there is no
> inheritance connection to AddressForm as we are accustomed to in ganymede.
>
> Question: How do I retrieve the context of an XWT child composite
> (NameForm) from the code-behind of the parent (AddressForm).
> Also, we yearn for some detail documentation on XWT.
>
> Thanks
>
> St Clair
Previous Topic:Enable/Disable ToolItem
Next Topic:Retrieving a child datacontext
Goto Forum:
  


Current Time: Tue Jul 22 11:50:49 EDT 2014

Powered by FUDForum. Page generated in 0.02563 seconds