Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Draw lines between two Trees in two ViewParts
icon5.gif  Draw lines between two Trees in two ViewParts [message #666343] Wed, 20 April 2011 03:40
Aratrik Gao is currently offline Aratrik GaoFriend
Messages: 1
Registered: April 2011
Junior Member
I want to write an eclipse RCP application. The main display will have 3 views. Left and right view will show two trees. The middle view will be used to draw lines between nodes of two trees.

When dragging one item on the one tree and dropping it on another item in the other tree I want to draw a line from the one to the other items. I should be able to detect each line because each of these lines have some properties to save as well. When the corresponding item in the tree is collapsed the line
should disappear, when the item gets out of the view the line should
disappear).

After the drawing finished I should be able to save the line along with the properties to a file (an XML) so that it can be open later.

Is it possible to do this at all?

If yes, what would you suggest: use SWT GC, use Draw2D, use GEF to draw the lines.

Any comments will be appreciated.

Thanks,
Aratrik
Previous Topic:Bring shell to top of desktop programmatically
Next Topic:Display#addFilter() not functional while a menu is open
Goto Forum:
  


Current Time: Thu Apr 25 12:28:43 GMT 2024

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

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

Back to the top