Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Nebula » Is it possible to draw connections over TreeViewer's composite edges?
Is it possible to draw connections over TreeViewer's composite edges? [message #1050078] Fri, 26 April 2013 13:14 Go to next message
Alex Kravets is currently offline Alex Kravets
Messages: 370
Registered: November 2009
Senior Member
Currently I use GEF to draw trees with connections between them, but after finding about TreeMapper I want to see if I can migrate to implementing TreeMapper in my editor. One thing that I am doing in extending connection between nodes outside tree's boundaries. Is it possible to do this with TreeMapper?

Here is the screenshot of my editor

http://i.imgur.com/9b4pyCJ.png

[Updated on: Fri, 26 April 2013 14:45]

Report message to a moderator

Re: Is it possible to draw connections over TreeViewer's edges? [message #1050112 is a reply to message #1050078] Fri, 26 April 2013 14:14 Go to previous messageGo to next message
Alex Kravets is currently offline Alex Kravets
Messages: 370
Registered: November 2009
Senior Member
I suppose it would be hard to draw a line over the composite. While searching BPEL's implementation of TreeMapper I saw this which I guess functions by drawing a line segment from the edge to the tree's node.

http://openesb-community-forum.794670.n2.nabble.com/file/n2232695/openesb06.png
Re: Is it possible to draw connections over TreeViewer's edges? [message #1051730 is a reply to message #1050078] Mon, 29 April 2013 02:50 Go to previous messageGo to next message
Mickael Istria is currently offline Mickael Istria
Messages: 735
Registered: July 2009
Location: Grenoble, France
Senior Member
I'm not sure I understand what you're trying to achieve. Could you
please provide a picture of what you'd like to do?
--
Mickael Istria
JBoss, by Red Hat
My blog: http://mickaelistria.wordpress.com
My Tweets: http://twitter.com/mickaelistria
Re: Is it possible to draw connections over TreeViewer's edges? [message #1052206 is a reply to message #1051730] Mon, 29 April 2013 15:52 Go to previous messageGo to next message
Alex Kravets is currently offline Alex Kravets
Messages: 370
Registered: November 2009
Senior Member
Nebula's TreeMapper draws connection up to the edge of the composite:

http://www.eclipse.org/nebula/widgets/treemapper/images/treemapper.png

I was wondering if there is a way to continue connection up to the node of tree as shown here:

http://openesb-community-forum.794670.n2.nabble.com/file/n2232695/openesb06.png

May be there is a setting that I missed if this is implemented?

Thanks,
Alex

[Updated on: Mon, 29 April 2013 16:13]

Report message to a moderator

Re: Is it possible to draw connections over TreeViewer's edges? [message #1052675 is a reply to message #1052206] Tue, 30 April 2013 07:40 Go to previous messageGo to next message
Mickael Istria is currently offline Mickael Istria
Messages: 735
Registered: July 2009
Location: Grenoble, France
Senior Member
I use NNTP and did not see the pictures as we can see them on forum.
Going back to the forum showed me the pictures and I can now understand
your use-case. Sorry for making you repeating it ;)

There is currently no such thing implemented in the TreeMapper. The
easiest guess for implementation I have in mind would be something like
using a StackLayout to display a (disabled) composite showing lines on
top of the trees... It does not sound very easy (and I'm not sure it
would work ;), but "architecture" of the TreeMapper would allow to do
that without breaking or changing any API.
Feel free to open a bug to track this feature request. And if you have
time, feel free to contribute some pieces of code to the TreeMapper.

Cheers,
--
Mickael Istria
JBoss, by Red Hat
My blog: http://mickaelistria.wordpress.com
My Tweets: http://twitter.com/mickaelistria
Re: Is it possible to draw connections over TreeViewer's edges? [message #1052968 is a reply to message #1052675] Wed, 01 May 2013 11:56 Go to previous message
Alex Kravets is currently offline Alex Kravets
Messages: 370
Registered: November 2009
Senior Member
Thanks Mickael, I will try to implement this then.
Previous Topic:[GanttChart] zoom and start date API
Next Topic:Gantt Chart Position
Goto Forum:
  


Current Time: Thu Jul 24 02:33:54 EDT 2014

Powered by FUDForum. Page generated in 0.01666 seconds