Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » [Databinding] MasterDetail Questions, ...
[Databinding] MasterDetail Questions, ... [message #317988] Wed, 18 July 2007 05:19 Go to next message
Eclipse UserFriend
Hi,

1. MasterDetail
---------------
I just took a look at the current MasterDetail structure and have some
questions.

BeansObservables.observeDetailList() returns an List which is not
writeable although at the low-level it is because the list under the
hoods is a JavaBeanObservableList the problem is DetailObservableList
throwing an UnsupportedException.

I admit I haven't fully understood the whole thing and maybe there are
reasons not to do this kind of thing (See 2.).

How do you suggest doing things like this? Currently I'm adding the new
object to the parent observable and afters recreating the input for the
detail.

2. JavaBeanObservableList:
--------------------------
The List is created with an empty new arraylist and if your POJO returns
a colllection the content is copied from the original collection to new
empty array.

But now you get into trouble because when calling add/remove the entries
are not added to the original collection. This might be ok but then you
can make the list writeable by providing add/... methods. Because
JavaBeanObservableList is the underlying list in MasterDetail this might
be the possibility that the returned list should not be writeable.

Tom

--
B e s t S o l u t i o n . at
------------------------------------------------------------ --------
Tom Schindl JFace-Committer
------------------------------------------------------------ --------
Re: [Databinding] MasterDetail Questions, ... [message #318432 is a reply to message #317988] Sun, 29 July 2007 12:00 Go to previous message
Eclipse UserFriend
Tom Schindl wrote:
> Hi,
>
> 1. MasterDetail
> ---------------
> I just took a look at the current MasterDetail structure and have some
> questions.
>
> BeansObservables.observeDetailList() returns an List which is not
> writeable although at the low-level it is because the list under the
> hoods is a JavaBeanObservableList the problem is DetailObservableList
> throwing an UnsupportedException.
>
> I admit I haven't fully understood the whole thing and maybe there are
> reasons not to do this kind of thing (See 2.).
>
> How do you suggest doing things like this? Currently I'm adding the new
> object to the parent observable and afters recreating the input for the
> detail.
>
> 2. JavaBeanObservableList:
> --------------------------
> The List is created with an empty new arraylist and if your POJO returns
> a colllection the content is copied from the original collection to new
> empty array.
>
> But now you get into trouble because when calling add/remove the entries
> are not added to the original collection. This might be ok but then you
> can make the list writeable by providing add/... methods. Because
> JavaBeanObservableList is the underlying list in MasterDetail this might
> be the possibility that the returned list should not be writeable.
>
> Tom
>

Tom, can you log bugs about these?

-brad
Previous Topic:EMF/GMF visual editor generation - Changing the containment of elements
Next Topic:Advice request - removing old plugin
Goto Forum:
  


Current Time: Sat Nov 08 01:01:06 EST 2025

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

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

Back to the top