Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Databinding with resource as root
Databinding with resource as root [message #1022032] Thu, 21 March 2013 06:47 Go to next message
Bastian Wagenfeld is currently offline Bastian WagenfeldFriend
Messages: 183
Registered: January 2013
Senior Member
Hi,

how can I bind root objects (objects that are not contained by another resource) to a TableViewer or something else?
For example, when I want to bind some Strings from a User I write the following:
EMFEditProperties.list(editingDomain,
				UsersPackage.Literals.USER__PROFILES).observe(
				user)

But now I want to do something like the following:
EMFEditProperties.list(editingDomain,
				no feature for that).observe(
				resource.getContents())


Is that possible?

Best regards
Bastian
Re: Databinding with resource as root [message #1022067 is a reply to message #1022032] Thu, 21 March 2013 08:21 Go to previous messageGo to next message
Christophe Bouhier is currently offline Christophe BouhierFriend
Messages: 937
Registered: July 2009
Senior Member
On 21-03-13 07:47, Bastian Wagenfeld wrote:
> Hi,
>
> how can I bind root objects (objects that are not contained by another
> resource) to a TableViewer or something else?
> For example, when I want to bind some Strings from a User I write the
> following:
> EMFEditProperties.list(editingDomain,
> UsersPackage.Literals.USER__PROFILES).observe(
> user)
> But now I want to do something like the following:
> EMFEditProperties.list(editingDomain,
> no feature for that).observe(
> resource.getContents())

Resource res ...
IEMFListProperty resProperty = EMFEditProperties
.resource(editingDomain);
IObservableList networksObservableList = resProperty
.observe(res);


>
> Is that possible?
>
> Best regards
> Bastian
Re: Databinding with resource as root [message #1022080 is a reply to message #1022067] Thu, 21 March 2013 08:51 Go to previous message
Bastian Wagenfeld is currently offline Bastian WagenfeldFriend
Messages: 183
Registered: January 2013
Senior Member
Thank you! That works.

Bastian
Previous Topic:[CDO/EMF] Ecore SubPackages & CDOPackage reading
Next Topic:Teneo: @BatchSize(size=n) on a many-value EAttribute
Goto Forum:
  


Current Time: Tue Apr 23 11:27:00 GMT 2024

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

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

Back to the top