Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » [Zest] Recursively nested Elements
[Zest] Recursively nested Elements [message #827531] Fri, 23 March 2012 13:03 Go to next message
Veit Hoffmann is currently offline Veit HoffmannFriend
Messages: 20
Registered: July 2009
Junior Member
Hi all,

first of all I was really astonished how easy graphs can be described
with Zest.
I have one Question. Is there a way to nest Graphelements recursively?
I was able to get elements drawn into a container by making my
ContentProvider implement INestedContentProvider. However I wasn't able
to nest elements deeper that one level because the Framework doesn't
consider the ContentProvider, when children of a container are created.
What am I doing wrong?

Thanks in advance

Veit
Re: [Zest] Recursively nested Elements [message #827621 is a reply to message #827531] Fri, 23 March 2012 15:25 Go to previous messageGo to next message
Zoltan Ujhelyi is currently offline Zoltan UjhelyiFriend
Messages: 392
Registered: July 2015
Senior Member
As of now, nested content providers does not support recursively nested graph elements.

When using the SWT API, you could add new nodes inside other nodes, as shown in the nested graph snippet: http://git.eclipse.org/c/gef/org.eclipse.zest.git/tree/org.eclipse.zest.examples/src/org/eclipse/zest/examples/swt/NestedGraphSnippet.java

Zoltan Ujhelyi
Re: [Zest] Recursively nested Elements [message #827639 is a reply to message #827621] Fri, 23 March 2012 15:50 Go to previous messageGo to next message
Veit Hoffmann is currently offline Veit HoffmannFriend
Messages: 20
Registered: July 2009
Junior Member
Hi Zoltan,

thanks for the quick response.
I will try another way to to express my structure then.

Cheers

Veit

p.s. Thanks for pointing me to the snippet anyhow. I wasn't aware of
CompositeLayouts too ;)

Am 23.03.2012 16:25, schrieb Zoltan Ujhelyi:
> As of now, nested content providers does not support recursively nested
> graph elements.
>
> When using the SWT API, you could add new nodes inside other nodes, as
> shown in the nested graph snippet:
> http://git.eclipse.org/c/gef/org.eclipse.zest.git/tree/org.eclipse.zest.examples/src/org/eclipse/zest/examples/swt/NestedGraphSnippet.java
>
>
> Zoltan Ujhelyi
Re: [Zest] Recursively nested Elements [message #827640 is a reply to message #827621] Fri, 23 March 2012 15:50 Go to previous messageGo to next message
Veit Hoffmann is currently offline Veit HoffmannFriend
Messages: 20
Registered: July 2009
Junior Member
Hi Zoltan,

thanks for the quick response.
I will try another way to to express my structure then.

Cheers

Veit

p.s. Thanks for pointing me to the snippet anyhow. I wasn't aware of
CompositeLayouts too ;)

Am 23.03.2012 16:25, schrieb Zoltan Ujhelyi:
> As of now, nested content providers does not support recursively nested
> graph elements.
>
> When using the SWT API, you could add new nodes inside other nodes, as
> shown in the nested graph snippet:
> http://git.eclipse.org/c/gef/org.eclipse.zest.git/tree/org.eclipse.zest.examples/src/org/eclipse/zest/examples/swt/NestedGraphSnippet.java
>
>
> Zoltan Ujhelyi
Re: [Zest] Recursively nested Elements [message #827642 is a reply to message #827640] Fri, 23 March 2012 15:53 Go to previous message
Zoltan Ujhelyi is currently offline Zoltan UjhelyiFriend
Messages: 392
Registered: July 2015
Senior Member
Be careful with the snippet. I opened the Zest 2.0 version; if you are using 1.x, some adaptation might be required.

Zoltán Ujhelyi
Previous Topic:Need Help to apply Search Filter in GEF palette
Next Topic:Coorindate of the left Corner of the ClientArea
Goto Forum:
  


Current Time: Tue Mar 19 08:51:13 GMT 2024

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

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

Back to the top