Skip to main content



      Home
Home » Modeling » EMF Parsley » Table with nested attributes(Parsley Table)
Table with nested attributes [message #1725634] Sat, 05 March 2016 06:28 Go to next message
Eclipse UserFriend
Hello Lorenzo and others.

In the following post about EMF databinding:
http://tomsondev.bestsolution.at/2009/06/07/galileo-emf-databinding-part-2/

I get the feeling that EMF edit has support for nested attributes in a table viewer, ie as in the above blog:

commitership.person -> person.lastName

this works good with the EMF databinding and since Parsley is also using EMF edit would it be possible to add nested attributes to the Parsley map?

Many thanks
Martin
Re: Table with nested attributes [message #1725748 is a reply to message #1725634] Mon, 07 March 2016 07:12 Go to previous messageGo to next message
Eclipse UserFriend
On 05/03/2016 12:29, Martin Jonsson wrote:
> Hello Lorenzo and others.
>
> In the following post about EMF databinding:
> http://tomsondev.bestsolution.at/2009/06/07/galileo-emf-databinding-part-2/
>
> I get the feeling that EMF edit has support for nested attributes in a
> table viewer, ie as in the above blog:
>
> commitership.person -> person.lastName
>
> this works good with the EMF databinding and since Parsley is also using
> EMF edit would it be possible to add nested attributes to the Parsley map?
>
> Many thanks
> Martin

Hi Martin

I think this is related to
https://bugs.eclipse.org/bugs/show_bug.cgi?id=444696 isn't it?

This is currently not supported. Please subscribe to that bug.

We hope we can work on that in the very near future. Probably we won't
make it for the upcoming 0.7.0, but we hope we can implement that soon.

cheers
Lorenzo

--
Prof. Lorenzo Bettini, Computer Science, DISIA, Univ. Firenze
HOME: http://www.lorenzobettini.it
Xtext Book:
http://www.packtpub.com/implementing-domain-specific-languages-with-xtext-and-xtend/book
Re: Table with nested attributes [message #1725953 is a reply to message #1725748] Tue, 08 March 2016 10:36 Go to previous messageGo to next message
Eclipse UserFriend
Hello Lorenzo.

Thanks for helping out.

That bug is way more advanced than my requirement.

I only need to show multi containement reference attributes in a table. Like this example from EMF databinding with multilist:

public IObservableList uc4(Project p) {
IEMFListProperty prop = EMFProperties.multiList(
ProjectPackage.Literals.PROJECT__SUBPROJECTS,
ProjectPackage.Literals.PROJECT__COMMITTERS
);
return prop.observe(p);
}

Here all committers for all subprojects for a project is displayed in the table.

I hope this is clear enough.

Cheers
Martin
Re: Table with nested attributes [message #1726020 is a reply to message #1725953] Wed, 09 March 2016 00:59 Go to previous message
Eclipse UserFriend
On 08/03/2016 16:36, Martin Jonsson wrote:
> Hello Lorenzo.
>
> Thanks for helping out.
>
> That bug is way more advanced than my requirement.
>
> I only need to show multi containement reference attributes in a table.
> Like this example from EMF databinding with multilist:
>
> public IObservableList uc4(Project p) {
> IEMFListProperty prop = EMFProperties.multiList(
> ProjectPackage.Literals.PROJECT__SUBPROJECTS,
> ProjectPackage.Literals.PROJECT__COMMITTERS
> );
> return prop.observe(p);
> }
>
> Here all committers for all subprojects for a project is displayed in
> the table.
>
> I hope this is clear enough.

Hi Martin

how would the committers be shown in the table?

a table with a row for each committer?
a table with a row for each subprojects, and column for each committer?

cheers
Lorenzo


--
Prof. Lorenzo Bettini, Computer Science, DISIA, Univ. Firenze
HOME: http://www.lorenzobettini.it
Xtext Book:
http://www.packtpub.com/implementing-domain-specific-languages-with-xtext-and-xtend/book
Previous Topic:Treeviewer Other Editing Domain
Next Topic:EMF Parsley 0.7.0, Heads up: changes in the project structure
Goto Forum:
  


Current Time: Tue May 13 23:05:28 EDT 2025

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

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

Back to the top