Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Retrieving a child datacontext
Retrieving a child datacontext [message #579175] Fri, 23 July 2010 01:21 Go to next message
St Clair Clarke is currently offline St Clair ClarkeFriend
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 #579425 is a reply to message #579175] Sat, 24 July 2010 13:56 Go to previous message
Yves YANG is currently offline Yves YANGFriend
Messages: 688
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:Retrieving a child datacontext
Next Topic:AddOn gets the wrong shell
Goto Forum:
  


Current Time: Fri Apr 19 11:56:33 GMT 2024

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

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

Back to the top