Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [EMF Forms] Tree Master Detail endless-loop
[EMF Forms] Tree Master Detail endless-loop [message #1710870] Sat, 10 October 2015 00:13 Go to next message
Hauke Fuhrmann is currently offline Hauke FuhrmannFriend
Messages: 30
Registered: January 2015
Member
Hi there,

I have a pretty simple domain model: A root element 'A' with two lists
of elements 'B' and 'C'

A    
+    
|    
+->B*
|    
+->C*

Now I thought it was obvious to display it in a tree master details
view. However, it is not:

I make a View for 'A' with exactly the Tree Master Details element,
nothing more.
The Problem is that I don't know which root Element to select (and how).

So when I do not set any root, I assume 'A' is the root. So the tree is
correctly shown, but on the right hand side when 'A' is selected,
another Tree Master Details View is opened, in which I can again select
'A' and get a third Tree Master Details View, and so on and so on. At
the third level I get an SWT Exception "org.eclipse.swt.SWTError: No
more handles"

So how to set the root correctly? I can set a view element to the Tree
Master Detail but there I cannot select any root element. The
corresponding entry seems to be read-only. And what element would I
choose there?

I'm using version 1.7

Cheers,
Hauke
Re: [EMF Forms] Tree Master Detail endless-loop [message #1711071 is a reply to message #1710870] Mon, 12 October 2015 16:44 Go to previous messageGo to next message
Jonas Helming is currently offline Jonas HelmingFriend
Messages: 699
Registered: July 2009
Senior Member
Hi,

I just noticed, that we haven't updated our documentation about Tree
Master Details in a while, I think this might help:
http://eclipsesource.com/blogs/tutorials/emf-forms-view-model-elements/#treemasterdetail

Best regards

Jonas


Am 10.10.2015 um 02:13 schrieb Hauke Fuhrmann:
> Hi there,
>
> I have a pretty simple domain model: A root element 'A' with two lists
> of elements 'B' and 'C'
>
> A    
> +    
> |    
> +->B*
> |    
> +->C*
>
> Now I thought it was obvious to display it in a tree master details
> view. However, it is not:
>
> I make a View for 'A' with exactly the Tree Master Details element,
> nothing more.
> The Problem is that I don't know which root Element to select (and how).
>
> So when I do not set any root, I assume 'A' is the root. So the tree is
> correctly shown, but on the right hand side when 'A' is selected,
> another Tree Master Details View is opened, in which I can again select
> 'A' and get a third Tree Master Details View, and so on and so on. At
> the third level I get an SWT Exception "org.eclipse.swt.SWTError: No
> more handles"
>
> So how to set the root correctly? I can set a view element to the Tree
> Master Detail but there I cannot select any root element. The
> corresponding entry seems to be read-only. And what element would I
> choose there?
>
> I'm using version 1.7
>
> Cheers,
> Hauke


--
--

Jonas Helming

Get professional Eclipse developer support:

http://eclipsesource.com/en/services/developer-support/
Re: [EMF Forms] Tree Master Detail endless-loop [message #1711139 is a reply to message #1711071] Tue, 13 October 2015 12:10 Go to previous message
Hauke Fuhrmann is currently offline Hauke FuhrmannFriend
Messages: 30
Registered: January 2015
Member
That makes it clearer, thanks, works!



Am 12.10.2015 18:44, schrieb Jonas Helming:
> Hi,
>
> I just noticed, that we haven't updated our documentation about Tree
> Master Details in a while, I think this might help:
> http://eclipsesource.com/blogs/tutorials/emf-forms-view-model-elements/#treemasterdetail
>
> Best regards
>
> Jonas
>
>
> Am 10.10.2015 um 02:13 schrieb Hauke Fuhrmann:
>> Hi there,
>>
>> I have a pretty simple domain model: A root element 'A' with two lists
>> of elements 'B' and 'C'
>>
>> A    
>> +    
>> |    
>> +->B*
>> |    
>> +->C*
>>
>> Now I thought it was obvious to display it in a tree master details
>> view. However, it is not:
>>
>> I make a View for 'A' with exactly the Tree Master Details element,
>> nothing more.
>> The Problem is that I don't know which root Element to select (and how).
>>
>> So when I do not set any root, I assume 'A' is the root. So the tree is
>> correctly shown, but on the right hand side when 'A' is selected,
>> another Tree Master Details View is opened, in which I can again select
>> 'A' and get a third Tree Master Details View, and so on and so on. At
>> the third level I get an SWT Exception "org.eclipse.swt.SWTError: No
>> more handles"
>>
>> So how to set the root correctly? I can set a view element to the Tree
>> Master Detail but there I cannot select any root element. The
>> corresponding entry seems to be read-only. And what element would I
>> choose there?
>>
>> I'm using version 1.7
>>
>> Cheers,
>> Hauke
>
>
Previous Topic:[EMF Forms] controls l10n
Next Topic:[EMF Forms] Validation results in Tree View
Goto Forum:
  


Current Time: Sat Nov 28 23:52:17 GMT 2020

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

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

Back to the top